@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

/* =========================================================================
   DARK-TECH HERO OVERRIDE — Applies only to body.dark-hero
   ========================================================================= */

body.dark-hero {
  background-color: #050814 !important;
  color: #a0aab8;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Fullscreen Background ─────────────────────────────── */
.dark-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('../img/cyber_background.webp') center/cover no-repeat;
  opacity: 0.9;
}

/* ── Navbar Override ───────────────────────────────────── */
/* Hide old navbar ONLY on homepage (where dk-nav is present) */
body.dark-hero .dk-nav ~ .mobile-nav,
body.dark-hero .dk-nav ~ .mobile-overlay {
  /* Keep mobile nav available but styled dark */
}

/* Dark-tech styling for the original navbar on internal pages */
body.dark-hero .navbar {
  background: rgba(5, 8, 20, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  box-shadow: none !important;
}
body.dark-hero .navbar.scrolled {
  background: rgba(5, 8, 20, 0.95) !important;
}
body.dark-hero .navbar-inner {
  max-width: 1400px;
}
body.dark-hero .navbar-menu a {
  color: #8e95a3 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  transition: color 0.3s !important;
}
body.dark-hero .navbar-menu a:hover,
body.dark-hero .navbar-menu a.active {
  color: #ffffff !important;
}

body.dark-hero .navbar-cta .btn-primary {
  background: rgba(10, 10, 18, 0.85) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 30px !important;
  box-shadow: 0 0 20px rgba(177, 0, 255, 0.25) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
body.dark-hero .navbar-cta .btn-primary:hover {
  border-color: rgba(177, 0, 255, 0.5) !important;
}
body.dark-hero .hamburger span {
  background: #fff !important;
}

/* Mobile nav dark styling */
body.dark-hero .mobile-nav {
  background: rgba(8, 10, 20, 0.98) !important;
  border-left: 1px solid rgba(255,255,255,0.05) !important;
}
body.dark-hero .mobile-nav a {
  color: #8e95a3 !important;
  font-family: 'Inter', sans-serif !important;
}
body.dark-hero .mobile-nav a:hover {
  color: #00f3ff !important;
}
body.dark-hero .mobile-overlay.active {
  background: rgba(0,0,0,0.6) !important;
}

/* Page hero on internal pages */
body.dark-hero .page-hero {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dk-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 20, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dk-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dk-nav-logo {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-decoration: none;
}

.dk-nav-center {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.dk-nav-center a {
  color: #8e95a3;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.3s;
  letter-spacing: 0.2px;
}
.dk-nav-center a:hover {
  color: #ffffff;
}

.dk-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dk-lang {
  color: #8e95a3;
  font-size: 0.82rem;
  font-weight: 500;
}
.dk-lang .active { color: #fff; }
.dk-lang .sep { margin: 0 5px; opacity: 0.4; }

/* CTA Button with Glow */
.dk-cta {
  position: relative;
  background: rgba(10, 10, 18, 0.85);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.3s;
}
.dk-cta::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(ellipse at center, rgba(177, 0, 255, 0.35) 0%, transparent 65%);
  z-index: -1;
  border-radius: 40px;
  pointer-events: none;
}
.dk-cta:hover {
  border-color: rgba(177, 0, 255, 0.5);
}

/* Mobile hamburger for dark nav */
.dk-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.dk-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero Section ──────────────────────────────────────── */
.dk-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  max-width: 1440px;
  margin: 0 auto;
}

.dk-hero-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 10px;
  z-index: 10;
}
.dk-hero-title h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.dk-hero-title h1 em {
  color: #00f3ff;
  font-style: italic;
  text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

/* Floating content container */
.dk-hero-float {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 500px;
  padding: 0 48px;
}

/* Code Editor — Bottom Left, Tilted */
.dk-code-wrap {
  position: absolute;
  left: 48px;
  bottom: 40px;
  width: 440px;
  transform: rotate(-3deg);
  z-index: 15;
}
.dk-code-card {
  background: rgba(16, 16, 22, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}
.dk-code-header {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dk-dot { width: 11px; height: 11px; border-radius: 50%; }
.dk-dot.r { background: #ff5f56; }
.dk-dot.y { background: #ffbd2e; }
.dk-dot.g { background: #27c93f; }

.dk-code-body {
  padding: 20px 28px 28px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.55;
  color: #c9d1d9;
  white-space: pre;
}
.dk-code-body .kw { color: #c678dd; }
.dk-code-body .cl { color: #61afef; }
.dk-code-body .fn { color: #61afef; }
.dk-code-body .st { color: #98c379; }
.dk-code-body .var { color: #e5c07b; }

/* War Room Image — Bottom Right */
.dk-img-wrap {
  position: absolute;
  right: 48px;
  bottom: 20px;
  width: 560px;
  height: 380px;
  z-index: 12;
}
.dk-img-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,243,255,0.08);
}
.dk-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Chatbot Widget (small dark circle) ────────────────── */
.dk-chat-btn {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 52px;
  height: 52px;
  background: rgba(12, 12, 18, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.dk-chat-btn:hover { transform: scale(1.08); }
.dk-chat-btn svg { width: 20px; height: 20px; fill: #fff; }

/* ── Animations ────────────────────────────────────────── */
.dk-fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.dk-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.dk-code-wrap.dk-fade-in.visible {
  transform: translateY(0) rotate(-3deg);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dk-nav-center { display: none; }
  .dk-hamburger { display: flex; }
  
  .dk-hero-float {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    min-height: auto;
    padding: 40px 20px;
  }
  .dk-code-wrap,
  .dk-img-wrap {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 480px;
    transform: none;
    height: auto;
  }
  .dk-img-card { height: 280px; }
  .dk-nav { padding: 14px 20px; }
}

@media (max-width: 600px) {
  .dk-hero-title h1 { font-size: 2rem; }
  .dk-code-body { font-size: 11px; padding: 14px 16px 18px; }
  .dk-cta { display: none; }
  .dk-lang { display: none; }
}

/* =========================================================================
   SITEWIDE DARK-TECH OVERRIDES — All sections below the Hero
   ========================================================================= */

/* ── Global Section Reset ──────────────────────────────── */
body.dark-hero section,
body.dark-hero .stats-bar,
body.dark-hero .footer {
  position: relative;
  z-index: 1;
}

body.dark-hero h1,
body.dark-hero h2,
body.dark-hero h3,
body.dark-hero h4 {
  color: #fff !important;
}
body.dark-hero p,
body.dark-hero li,
body.dark-hero span,
body.dark-hero label {
  color: #a0aab8;
}
body.dark-hero a {
  color: #00f3ff;
}
body.dark-hero a:hover {
  color: #fff;
}

/* Gradient text override → cyan glow */
body.dark-hero .gradient-text,
body.dark-hero .gradient-animated-text {
  background: linear-gradient(135deg, #00f3ff, #b100ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Section labels */
body.dark-hero .section-label {
  color: #00f3ff !important;
  opacity: 0.9;
}

/* Section subtitles */
body.dark-hero .section-subtitle {
  color: #8e95a3 !important;
}

/* ── Stats Bar ─────────────────────────────────────────── */
body.dark-hero .stats-bar {
  background: rgba(8, 10, 22, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.dark-hero .stat-number {
  background: linear-gradient(135deg, #00f3ff, #b100ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
body.dark-hero .stat-label {
  color: #8e95a3 !important;
}

/* ── Offerte Cards ─────────────────────────────────────── */
body.dark-hero .offerta-card {
  background: rgba(15, 18, 30, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
body.dark-hero .offerta-card:hover {
  border-color: rgba(0, 243, 255, 0.3) !important;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.1) !important;
  transform: translateY(-4px);
}
body.dark-hero .offerta-card h3 {
  color: #fff !important;
}
body.dark-hero .offerta-card p {
  color: #8e95a3 !important;
}
body.dark-hero .badge-price {
  background: linear-gradient(135deg, rgba(0,243,255,0.15), rgba(177,0,255,0.15)) !important;
  color: #00f3ff !important;
  border: 1px solid rgba(0,243,255,0.2) !important;
}
body.dark-hero .offerta-cta {
  color: #00f3ff !important;
}

/* ── Services Path Cards ───────────────────────────────── */
body.dark-hero .path-card {
  background: rgba(15, 18, 30, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
body.dark-hero .path-card:hover {
  border-color: rgba(0, 243, 255, 0.3) !important;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.1) !important;
  transform: translateY(-4px);
}
body.dark-hero .tag {
  background: rgba(0, 243, 255, 0.08) !important;
  color: #00f3ff !important;
  border: 1px solid rgba(0, 243, 255, 0.15) !important;
}

/* ── Methodology Cards ─────────────────────────────────── */
body.dark-hero .method-card {
  background: rgba(15, 18, 30, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  transition: transform 0.4s, border-color 0.4s;
}
body.dark-hero .method-card:hover {
  border-color: rgba(0, 243, 255, 0.25) !important;
  transform: translateY(-4px);
}
body.dark-hero .method-number {
  background: linear-gradient(135deg, #00f3ff, #b100ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ── Product Cards ─────────────────────────────────────── */
body.dark-hero .product-card {
  background: rgba(15, 18, 30, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
body.dark-hero .product-card:hover {
  border-color: rgba(0, 243, 255, 0.3) !important;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.1) !important;
  transform: translateY(-4px);
}
body.dark-hero .product-card-footer {
  background: rgba(0,0,0,0.2) !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  color: #8e95a3 !important;
}
body.dark-hero .product-card-link-wrapper {
  color: inherit !important;
}
body.dark-hero .product-badge {
  border: 1px solid rgba(0,243,255,0.2) !important;
}
body.dark-hero .badge-live {
  background: rgba(0,243,255,0.1) !important;
  color: #00f3ff !important;
}
body.dark-hero .badge-live .badge-dot {
  background: #00f3ff !important;
  box-shadow: 0 0 6px #00f3ff !important;
}
body.dark-hero .badge-wip {
  background: rgba(177,0,255,0.1) !important;
  color: #b100ff !important;
}
body.dark-hero .badge-wip .badge-dot {
  background: #b100ff !important;
  box-shadow: 0 0 6px #b100ff !important;
}
body.dark-hero .card-arrow {
  color: #00f3ff !important;
}
body.dark-hero .coming-soon-label {
  color: #b100ff !important;
}

/* ── Services Visual ───────────────────────────────────── */
body.dark-hero .services-visual img {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
body.dark-hero .feature-list .feature-item::before {
  color: #00f3ff !important;
}
body.dark-hero .feature-item {
  color: #a0aab8 !important;
}

/* ── Team Cards ────────────────────────────────────────── */
body.dark-hero .team-card {
  background: rgba(15, 18, 30, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  transition: transform 0.4s, border-color 0.4s;
}
body.dark-hero .team-card:hover {
  border-color: rgba(0, 243, 255, 0.25) !important;
  transform: translateY(-4px);
}
body.dark-hero .team-card .role {
  color: #00f3ff !important;
}
body.dark-hero .team-avatar {
  background: rgba(0, 243, 255, 0.08) !important;
  border: 1px solid rgba(0, 243, 255, 0.15) !important;
}

/* ── Blog Cards ────────────────────────────────────────── */
body.dark-hero .blog-card {
  background: rgba(15, 18, 30, 0.6) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}
body.dark-hero .blog-card:hover {
  border-color: rgba(0, 243, 255, 0.25) !important;
  transform: translateY(-4px);
}
body.dark-hero .blog-card-img {
  background: rgba(0, 243, 255, 0.06) !important;
}
body.dark-hero .blog-card-meta {
  color: #8e95a3 !important;
}
body.dark-hero .blog-card-meta .cat {
  color: #00f3ff !important;
}
body.dark-hero .read-more {
  color: #00f3ff !important;
}

/* ── Contact Section ───────────────────────────────────── */
body.dark-hero .contact-section {
  background: transparent !important;
}
body.dark-hero .contact-info {
  background: rgba(15, 18, 30, 0.5) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  padding: 40px !important;
}
body.dark-hero .contact-info h3 {
  color: #fff !important;
}
body.dark-hero .contact-detail {
  color: #a0aab8 !important;
}
body.dark-hero .contact-detail strong {
  color: #fff !important;
}
body.dark-hero .contact-form {
  background: rgba(15, 18, 30, 0.5) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 20px !important;
  padding: 40px !important;
}
body.dark-hero .contact-form input,
body.dark-hero .contact-form textarea,
body.dark-hero .contact-form select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
body.dark-hero .contact-form input:focus,
body.dark-hero .contact-form textarea:focus,
body.dark-hero .contact-form select:focus {
  border-color: #00f3ff !important;
  box-shadow: 0 0 12px rgba(0,243,255,0.15) !important;
  outline: none !important;
}
body.dark-hero .contact-form label {
  color: #a0aab8 !important;
}
body.dark-hero .contact-form input::placeholder,
body.dark-hero .contact-form textarea::placeholder {
  color: rgba(255,255,255,0.25) !important;
}

/* ── Buttons (Global Override) ─────────────────────────── */
body.dark-hero .btn-primary {
  background: linear-gradient(135deg, #00f3ff, #b100ff) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
}
body.dark-hero .btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 243, 255, 0.5) !important;
  transform: translateY(-2px);
}
body.dark-hero .btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 30px !important;
  transition: border-color 0.3s;
}
body.dark-hero .btn-secondary:hover {
  border-color: #00f3ff !important;
  color: #00f3ff !important;
}
body.dark-hero .btn-outline {
  background: transparent !important;
  color: #00f3ff !important;
  border: 1px solid rgba(0,243,255,0.3) !important;
  border-radius: 30px !important;
}
body.dark-hero .btn-outline:hover {
  background: rgba(0, 243, 255, 0.08) !important;
}

/* ── Footer ────────────────────────────────────────────── */
body.dark-hero .footer {
  background: rgba(5, 6, 14, 0.95) !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
body.dark-hero .footer h4 {
  color: #fff !important;
}
body.dark-hero .footer a {
  color: #8e95a3 !important;
  transition: color 0.3s;
}
body.dark-hero .footer a:hover {
  color: #00f3ff !important;
}
body.dark-hero .footer p,
body.dark-hero .footer span {
  color: #6b7280 !important;
}
body.dark-hero .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
body.dark-hero .footer-brand .logo-text span {
  color: #8eaabc !important;
}
body.dark-hero .footer-brand .logo-text {
  color: #fff !important;
}

/* ── Chatbot FAB ───────────────────────────────────────── */
body.dark-hero .chatbot-fab .chatbot-toggle-btn {
  background: rgba(12, 12, 20, 0.9) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}
body.dark-hero .chatbot-panel {
  background: rgba(12, 14, 24, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
}
body.dark-hero .chatbot-header {
  background: rgba(0,0,0,0.2) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
body.dark-hero .chatbot-input-area input {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* ── Cookie Banner ─────────────────────────────────────── */
body.dark-hero .cookie-banner {
  background: rgba(12, 14, 24, 0.95) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #a0aab8 !important;
}
body.dark-hero .cookie-accept {
  background: linear-gradient(135deg, #00f3ff, #b100ff) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 20px !important;
}
body.dark-hero .cookie-decline {
  background: transparent !important;
  color: #8e95a3 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 20px !important;
}

/* ── Checkbox GDPR override ────────────────────────────── */
body.dark-hero .checkbox-custom-mark {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.15) !important;
}
body.dark-hero .checkbox-custom-container input:checked ~ .checkbox-custom-mark {
  background: #00f3ff !important;
  border-color: #00f3ff !important;
}

/* ── Hero canvas & bg kill ─────────────────────────────── */
body.dark-hero .hero-bg,
body.dark-hero #hero-canvas {
  display: none !important;
}
