:root {
  --bg-dark: #020617;
  --primary: #1d4ed8;
  --accent: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}

/* ============================
   GLOBAL
   ============================ */

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg-dark);
  overflow-x: hidden;
  position: relative;
}

/* ============================
   TŁO
   ============================ */

.bg-tile {
  position: fixed;
  inset: 0;
  background-image: url("images/tile-neural.png");
  background-size: 512px 512px;
  background-repeat: repeat;
  opacity: 0.2;
  z-index: -3;
}

.bg-robot-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 380px;
  opacity: 0.35;
  z-index: -2;
  pointer-events: none;
}

.bg-robot-bottom img {
  width: 100%;
  height: auto;
}

/* ============================
   HEADER
   ============================ */

.top-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6vw;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.3);
  min-height: 90px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-wrapper img {
  height: 200px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.55));
}

.right-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 500;
  text-decoration: none;
}

/* ============================
   FLAGI DESKTOP
   ============================ */

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch .flag img {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(56,189,248,0.3);
}

.flag.active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ============================
   CONTENT
   ============================ */

.page-content {
  max-width: 1200px;
  margin: auto;
  padding: 40px 6vw 80px;
}

/* ============================
   HERO
   ============================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}

.agent-photo-frame {
  padding: 6px;
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.6), transparent 55%);
}

.agent-photo-frame img {
  width: 100%;
  border-radius: 18px;
}

.hero-right h1 {
  font-size: 1.9rem;
  margin: 0;
}

.hero-right h2 {
  color: var(--accent);
  margin: 4px 0 14px;
}

.hero-lead { margin-bottom: 12px; }
.hero-meta { margin-bottom: 18px; color: var(--text-muted); }

.hero-cv-block {
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
  padding: 16px;
  border-radius: 18px;
}

.cv-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.cv-row + .cv-row {
  border-top: 1px dashed rgba(148,163,184,0.35);
}

.cv-label { color: var(--text-muted); }

/* ============================
   FEATURES
   ============================ */

.features {
  margin-top: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title icon"
    "list list";
  gap: 12px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 22px;
  border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(56,189,248,0.25);
}

.feature-card h4 {
  grid-area: title;
  margin: 0;
  font-size: 1.2rem;
}

.feature-card ul {
  grid-area: list;
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.feature-icon img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.45));
}

/* ============================
   CONTACT SECTION
   ============================ */

.contact-section {
  margin-top: 80px;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(148,163,184,0.3);
}

.contact-section h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(56,189,248,0.4);
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.contact-text {
  max-width: 600px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-box {
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 22px;
  border-radius: 20px;
  width: 320px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.contact-row + .contact-row {
  border-top: 1px dashed rgba(148,163,184,0.35);
}

.contact-label {
  color: var(--text-muted);
}

.contact-value a {
  color: var(--accent);
  text-decoration: none;
}

.contact-value a:hover {
  text-shadow: 0 0 8px rgba(56,189,248,0.6);
}

/* MOBILE CONTACT */
@media (max-width: 700px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .contact-box {
    width: 100%;
  }
}

/* ============================
   FOOTER
   ============================ */

.page-footer {
  text-align: center;
  padding: 40px 0 80px;
  color: var(--text-muted);
}

/* ============================
   HAMBURGER
   ============================ */

.hamburger {
  display: none;
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 9999;
}

/* ============================
   MOBILE MENU (FINAL)
   ============================ */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(56,189,248,0.35);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: right 0.35s ease;
  z-index: 3000;
}

.mobile-menu.open {
  right: 0;
}

.mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mm-title {
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  color: #e5e7eb;
  letter-spacing: 2px;
}

.mm-close {
  font-size: 28px;
  cursor: pointer;
  color: #38bdf8;
}

.mm-lang {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mm-flag {
  padding: 4px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 8px rgba(56,189,248,0.25);
}

.mm-flag.active {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56,189,248,0.55);
}

.mm-flag img {
  width: 36px;
  height: 26px;
  border-radius: 4px;
}

.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mm-nav a {
  position: relative;
  color: #e5e7eb;
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.mm-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  transition: width 0.25s ease;
}

.mm-nav a:hover {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56,189,248,0.7);
}

.mm-nav a:hover::after {
  width: 100%;
}

.mm-nav a:hover .icon {
  transform: translateX(4px);
  transition: transform 0.25s ease;
}

.mm-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
}

/* ============================
   RESPONSYWNOŚĆ
   ============================ */

@media (max-width: 900px) {
  .main-nav,
  .lang-switch {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-wrapper img {
    height: 150px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-icon img {
    width: 60px;
    height: 60px;
  }

  .logo-wrapper img {
    height: 120px;
  }

  .right-header {
    gap: 12px;
  }
}
