:root {
  --bg: #0f1113;
  --bg-alt: #1c1e22;
  --txt: #f1f1f1;
  --accent: #ff4444;
  --muted: #888;
  --glass: rgba(255, 255, 255, .08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  direction: rtl;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Heebo", sans-serif;
  font-weight: 700;
  line-height: 1.9;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40vh;
  position: relative;
}

header h1 {
  font-family: "Karantina", cursive;
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(255, 68, 68, .55);
  margin-bottom: -100px;
}

main {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  padding: 100px 20px;
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background:
    radial-gradient(circle 10px at center top, var(--accent) 0 60%, transparent 61%),
    radial-gradient(circle 10px at center bottom, var(--accent) 0 60%, transparent 61%),
    var(--accent);
  background-repeat: no-repeat;
  background-size: 100% 20px, 100% 20px, 100% calc(100% - 40px);
  background-position: center top, center bottom, center;
  filter: drop-shadow(0 0 6px var(--accent));
}

section {
  position: relative;
  width: 46%;
  padding: 24px 36px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s;
  margin-bottom: 96px;
}

section:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

section:nth-child(odd) { margin-right: 54%; }
section:nth-child(even) { margin-left: 54%; }

section::before,
section::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 22px;
  height: 22px;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

section::before {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

section::after {
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle fill='none' stroke='%23ffffff' stroke-width='2' cx='12' cy='12' r='10'/>\
<path fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' d='M12 7v5l3 2'/>\
</svg>") center/18px 18px no-repeat;
  pointer-events: none;
}

section:nth-child(odd)::before,
section:nth-child(odd)::after { right: -53px; }

section:nth-child(even)::before,
section:nth-child(even)::after { left: -53px; }

section:hover::before,
section:hover::after,
section.active::before,
section.active::after {
  transform: scale(1.45);
  filter: drop-shadow(0 0 8px var(--accent));
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  margin-bottom: 18px;
}

p {
  font-size: clamp(15px, 1.9vw, 18px);
  text-align: justify;
  margin-bottom: 16px;
}

a {
  color: #00bcd4;
  font-weight: 900;
  text-decoration: none;
}

.highlight { color: var(--accent); font-weight: 900; }
.digital  { font-family: 'Orbitron', monospace; letter-spacing: 1px; }

footer {
  background: var(--bg-alt);
  padding: 32px;
  border-top: 2px solid #3a3a3a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  margin-top: auto;
}

.footer-sections { display: flex; flex-wrap: wrap; gap: 64px; }

.footer-section h3 {
  color: var(--txt);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-section a {
  color: var(--txt);
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  transition: color .25s;
}

.footer-section a:hover { color: var(--accent); }

.footer-copy {
  flex-basis: 100%;
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
  font-size: 14px;
}

.top-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: transparent;
  backdrop-filter: blur(0);
  transition: background .3s, backdrop-filter .3s;
  z-index: 999;
}

.top-blur.scrolled {
  background: rgba(28, 30, 34, .55);
  backdrop-filter: blur(7px);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  gap: 24px;
  padding: 24px 32px;
  background: transparent;
  transition: background .3s;
}

.nav-menu.scrolled {
  background: rgba(28, 30, 34, .55);
  backdrop-filter: blur(7px);
}

.nav-menu a {
  font-family: "Heebo", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--txt);
  transition: color .25s;
  border-bottom: 2px solid var(--accent);
}

.nav-menu a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 24px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1600;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s, opacity .35s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

#navOverlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
  z-index: 1500;
}

#navOverlay.show { display: block; }

@media (min-width: 769px) {
  .nav-logo {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    height: 110px;
  }

  .mobile-logo { display: none; }

  .nav-menu {
    height: 80px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 32px;
    background: rgba(28, 30, 34, .7);
    backdrop-filter: blur(9px);
    border-bottom: 2px solid var(--accent);
  }

  .nav-menu a {
    display: inline-flex;
    align-items: start;
    gap: 10px;
    padding: 12px 28px;
    font: 900 20px/1 "Heebo", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    transition: background .25s, color .25s, transform .25s, box-shadow .25s;
    border-bottom: none;
  }

  .nav-menu a:hover {
    color: #fff;
    background: rgba(255, 68, 68, .2);
    transform: translateY(-3px);
  }
}

@media (max-width: 768px) {
  .top-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: transparent;
    backdrop-filter: blur(0);
    transition: background .3s, backdrop-filter .3s;
    z-index: 999;
  }

  .top-blur.scrolled {
    background: rgba(28, 30, 34, .55);
    backdrop-filter: blur(7px);
  }

  .menu-toggle { display: flex; }

  .mobile-logo {
    display: block;
    position: fixed;
    top: -5px;
    left: 16px;
    height: 72px;
    z-index: 1600;
  }

  .nav-logo { display: none; }

  .nav-menu.open { right: 0; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    padding: 96px 0 0;
    width: 72%;
    max-width: 320px;
    height: 100vh;
    background: rgba(28, 30, 34, .9);
    backdrop-filter: blur(16px);
    transition: right .35s;
    z-index: 1550;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 56px;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #838383;
    transition:
      background .35s,
      color .35s,
      transform .35s cubic-bezier(.22, 1, .36, 1),
      box-shadow .35s;
  }

  .nav-menu a i {
    font-size: 20px;
    width: 22px;
  }

  .nav-menu a:hover {
    background: rgba(28, 30, 34, .55);
    color: #fff;
    border-bottom: none;
    border-radius: 10px;
    transform: translateY(-3px);
  }

  header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    position: relative;
  }

  header h1 {
    font-family: "Karantina", cursive;
    font-size: 50px;
    font-weight: 400;
    color: var(--accent);
    text-shadow: 0 0 6px rgba(255, 68, 68, .55);
    margin-bottom: -150px;
  }

  section:nth-child(odd)::before,
  section:nth-child(odd)::after,
  section:nth-child(even)::before,
  section:nth-child(even)::after {
    left: -46px;
    right: auto;
  }

  main::before { display: none; }

  section,
  section:nth-child(odd),
  section:nth-child(even) {
    width: 100%;
    margin: 0 0 60px;
    padding: 24px 24px 24px 40px;
  }

  section::before { right: auto; left: -46px; }

  section::before,
  section::after {
    content: none;
  }
}
