/* ==========================================================================
   Lyvora Studio - Design System & Futuristic Agency Styling
   Exclusiv CSS3 Nativă + Bootstrap 5 Local
   ========================================================================== */

:root {
  --ly-bg-main: #060913;
  --ly-bg-surface: #0c1222;
  --ly-bg-card: #111827;
  --ly-bg-card-hover: #172136;
  --ly-border: rgba(255, 255, 255, 0.08);
  --ly-border-glow: rgba(56, 189, 248, 0.35);
  
  --ly-cyan: #38bdf8;
  --ly-cyan-glow: rgba(56, 189, 248, 0.2);
  --ly-indigo: #6366f1;
  --ly-indigo-glow: rgba(99, 102, 241, 0.2);
  --ly-purple: #a855f7;
  --ly-emerald: #10b981;
  
  --ly-text-main: #f8fafc;
  --ly-text-muted: #94a3b8;
  --ly-text-subtle: #64748b;
  
  --ly-font-display: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ly-radius-sm: 8px;
  --ly-radius-md: 14px;
  --ly-radius-lg: 20px;
  --ly-radius-full: 9999px;
  
  --ly-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --ly-shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --ly-shadow-glow: 0 0 35px rgba(56, 189, 248, 0.15);
}

/* Reset & Corp Pagină */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ly-bg-main);
  color: var(--ly-text-main);
  font-family: var(--ly-font-display);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Selecție text */
::selection {
  background-color: var(--ly-cyan);
  color: #000;
}

/* Scrollbar personalizat */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ly-bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ly-cyan);
}

/* Tipografie */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--ly-cyan);
  text-decoration: none;
  transition: all 0.25s ease;
}
a:hover {
  color: #7dd3fc;
}

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

/* Fundaluri & Grile */
.bg-surface {
  background-color: var(--ly-bg-surface);
}
.bg-grid-pattern {
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Header & Navigare */
.lyvora-navbar {
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ly-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
}
.lyvora-navbar.scrolled {
  padding: 0.65rem 0;
  background: rgba(6, 9, 19, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-bottom-color: rgba(56, 189, 248, 0.15);
}
.navbar-brand img {
  height: 38px;
  width: auto;
}
.navbar-nav .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--ly-radius-sm);
  transition: all 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Butoane Futuriste */
.btn-futuristic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--ly-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-futuristic:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.45);
  border-color: rgba(56, 189, 248, 0.5);
}
.btn-futuristic-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 24, 39, 0.6);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--ly-radius-md);
  border: 1px solid var(--ly-border);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.btn-futuristic-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ly-cyan);
  color: var(--ly-cyan);
  transform: translateY(-2px);
}

/* Carduri & Containere */
.ly-card {
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-md);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.ly-card:hover {
  background: var(--ly-bg-card-hover);
  border-color: var(--ly-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--ly-shadow-glow);
}

/* Card Proiect Portofoliu */
.project-card {
  border-radius: var(--ly-radius-md);
  overflow: hidden;
  background: var(--ly-bg-card);
  border: 1px solid var(--ly-border);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  border-color: var(--ly-cyan);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--ly-shadow-glow);
}
.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #020617;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img {
  transform: scale(1.05);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 19, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

/* Badge-uri & Tag-uri Tehnologice */
.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--ly-radius-full);
  background: rgba(56, 189, 248, 0.1);
  color: var(--ly-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.02em;
}
.status-badge {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--ly-radius-full);
}

/* Card Servicii */
.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--ly-radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--ly-cyan);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.ly-card:hover .service-icon-box {
  background: var(--ly-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  transform: scale(1.08);
}

/* Formulare Elegante */
.form-label {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  background-color: #090d16;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: var(--ly-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
  background-color: #0f172a;
  border-color: var(--ly-cyan);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.form-control::placeholder {
  color: #64748b;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  top: 10%;
  right: -10%;
  pointer-events: none;
  filter: blur(60px);
}
.hero-glow-left {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  bottom: 0%;
  left: -10%;
  pointer-events: none;
  filter: blur(50px);
}

/* Quick Floating Actions (WhatsApp & Contact) */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--ly-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255,255,255,0.15);
}
.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  color: #fff;
}
.floating-whatsapp {
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.floating-top {
  background: #1e293b;
  display: none;
}
.floating-top.show {
  display: flex;
}

/* Footer */
.lyvora-footer {
  background: #04070e;
  border-top: 1px solid var(--ly-border);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: var(--ly-text-muted);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--ly-cyan);
  padding-left: 4px;
}

/* Notificări & Toasts */
.ly-alert {
  border-radius: var(--ly-radius-sm);
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  margin-bottom: 1.5rem;
}
.ly-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #a7f3d0;
}
.ly-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #fca5a5;
}

/* Dropdown căutare dinamică Blog */
.blog-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--ly-radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.blog-search-results.show {
  display: block;
}
.search-item {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
  transition: background 0.2s ease;
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }
  .navbar-collapse {
    background: #090d16;
    padding: 1.25rem;
    border-radius: var(--ly-radius-md);
    margin-top: 0.75rem;
    border: 1px solid var(--ly-border);
  }
}
