/* =========================================================
   Digital New Era — static build
   base.css: fonts, reset, layout framework, global classes,
   glow animations, noise + preloader. Shared by every page.
   ========================================================= */

/* ---------- Fonts ---------- */
/* Cyrillic subsets for the secondary fonts (Retro Gaming already contains Cyrillic) */
@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2-variations'); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Open Sans'; src: url('../fonts/open-sans-cyrillic-wght-normal.woff2') format('woff2-variations'); font-weight: 300 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lobster'; src: url('../fonts/lobster-cyrillic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face {
  font-family: 'Retro Gaming';
  src: url('../fonts/RetroGaming.woff2') format('woff2'),
       url('../fonts/Retro Gaming.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lobster';
  src: url('../fonts/lobster-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset (normalize subset used by Oxygen) ---------- */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, ::after, ::before { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6 { margin: 0; }
section { display: block; }
a { background-color: transparent; outline: none; text-decoration: none; }
a:hover { text-decoration: none; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
img { border-style: none; }
svg:not(:root) { overflow: hidden; }
button, input, select, textarea { font-size: 100%; line-height: 1.15; margin: 0; }
button, html [type="button"], [type="submit"] { -webkit-appearance: button; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[hidden], template { display: none; }

/* ---------- Global typography (Oxygen global settings) ---------- */
body {
  font-family: 'Retro Gaming', 'Courier New', monospace;
  line-height: 1;
  font-size: 18px;
  font-weight: 100;
  color: #404040;
  overflow: hidden;
  margin: 0 auto;
  background: #000;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Retro Gaming', 'Courier New', monospace; font-size: 36px; font-weight: 400; }
h2, h3, h4, h5, h6 { font-size: 30px; }
h3, h4, h5, h6 { font-size: 24px; }
h4, h5, h6 { font-size: 20px; }
h5, h6 { font-size: 18px; }
h6 { font-size: 16px; }
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }

/* ---------- Layout framework (Oxygen components) ---------- */
.ct-section { width: 100%; background-size: cover; background-repeat: repeat; }
.ct-section > .ct-section-inner-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.ct-section-inner-wrap { margin-left: auto; margin-right: auto; height: 100%; min-height: inherit; max-width: 1024px; }
.ct-div-block { display: flex; flex-wrap: nowrap; flex-direction: column; align-items: flex-start; }
.ct-new-columns { display: flex; width: 100%; flex-direction: row; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.ct-link-text { display: inline-block; }
.ct-link { display: flex; flex-wrap: wrap; text-align: center; text-decoration: none; flex-direction: column; align-items: center; justify-content: center; }
.ct-link-button { display: inline-block; text-align: center; text-decoration: none; background-color: #1e73be; border: 1px solid #1e73be; color: #fff; padding: 10px 16px; border-radius: 3px; }
.ct-image { max-width: 100%; height: auto; }
.ct-span { display: inline-block; text-decoration: inherit; }
.ct-slide { display: flex; flex-wrap: wrap; text-align: center; flex-direction: column; align-items: center; justify-content: center; }
.ct-slider { width: 100%; }
.oxy-dynamic-list { width: 100%; }
div.oxy-repeater-pages, div.oxy-repeater-pages-wrap { display: flex; }
.ct-modal { flex-direction: column; align-items: flex-start; }

.ct-fancy-icon > svg { width: 55px; height: 55px; fill: currentColor; }
div.ct-fancy-icon { display: inline-flex; border-radius: 50%; }

.ct-video { width: 100%; }
.ct-video > .oxygen-vsb-responsive-video-wrapper { position: relative; }
.ct-video > .oxygen-vsb-responsive-video-wrapper > iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.oxy-social-icons { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; }
.oxy-social-icons a { line-height: 1; width: 1em; height: 1em; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.oxy-social-icons a svg { stroke-width: 0; stroke: currentColor; fill: currentColor; width: .5em; height: .5em; }

.oxy-stock-content-styles .alignleft { margin-right: 1em; float: left; }
.oxy-stock-content-styles .alignright { margin-left: 1em; float: right; }
.oxy-stock-content-styles .aligncenter { margin-left: auto; margin-right: auto; }
.oxy-stock-content-styles img { max-width: 100%; height: auto; }

/* Toggle */
.oxy-toggle { display: flex; flex-direction: row; cursor: pointer; }
.oxy-toggle-content { align-self: stretch; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.oxy-expand-collapse-icon { align-self: center; flex-shrink: 0; flex-grow: 0; margin-right: .4em; text-align: initial; width: 1em; height: 1em; position: relative; display: inline-block; }
.oxy-expand-collapse-icon::after, .oxy-expand-collapse-icon::before { content: ""; background-color: #000; position: absolute; width: 1em; height: .16em; top: calc((1em / 2) - .08em); transition: .3s ease-in-out all; border-radius: .03em; }
.oxy-expand-collapse-icon::after { transform: rotate(-90deg) scale(0); }
.oxy-eci-collapsed.oxy-expand-collapse-icon::after { transform: rotate(-180deg); }
.oxy-eci-collapsed.oxy-expand-collapse-icon::before { transform: rotate(-90deg); }

/* Fade slider (replaces jQuery Unslider) */
.oxygen-unslider-container { position: relative; overflow: hidden; }
.oxygen-unslider-container > ul { list-style: none; margin: 0; padding: 0; position: relative; }
.oxygen-unslider-container > ul > li { margin: 0; padding: 0; }
.oxygen-unslider-container.unslider-fade > ul > li { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade, 0ms) ease; }
.oxygen-unslider-container.unslider-fade > ul > li.unslider-active { position: relative; opacity: 1; z-index: 1; }
.unslider-wrap { display: flex; }

/* Columns stacking (Oxygen columns component) */
@media (max-width: 992px) {
  .ct-columns-inner-wrap { display: block !important; }
  .ct-column { width: 100% !important; margin: 0 !important; }
}

/* ---------- Global classes (Oxygen "universal" stylesheet) ---------- */
.blue-text-glow { font-weight: 100; color: #00e5ff; }
.pink-text-glow { margin-top: 10px; font-size: 13px; }
@media (max-width: 374px) { .pink-text-glow { font-size: 10px; } }
.green-text, .green-text-glow-heading, .green-text-glow { color: #00ff00; }
.red-text { color: #ff0000; }

.modal:not(.ct-section),
.modal.ct-section .ct-section-inner-wrap { display: none; }
.overlay:not(.ct-section),
.overlay.ct-section .ct-section-inner-wrap { display: none; }

.slide { position: absolute; width: 40vw; }
.slide:not(.ct-section) { align-items: center; justify-content: center; }
@media (max-width: 479px) { .active { width: 45vw; } }

.projects-container { width: 100vw; height: 100vh; position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9; }
@media (max-width: 1024px) { .projects-container:not(.ct-section) { display: flex; } }

.toggle-1033 { padding: 3%; transition-duration: 0s; }
.toggle-1033 .oxy-expand-collapse-icon::before,
.toggle-1033 .oxy-expand-collapse-icon::after { background-color: #00e5ff; }
.toggle-1033-expanded { transition-duration: 0s; }

.hover-scroll-image {
  background-size: cover;
  width: 100%;
  max-width: 400px;
  height: 500px;
  border: 3px solid #00ff00;
  background-repeat: no-repeat;
  background-attachment: scroll;
  opacity: .9;
  overflow: hidden;
}

.go-back-btn, .next-post-btn, .oxy-close-modal { cursor: pointer; }
.oxy-modal-backdrop.bottom { z-index: 4; }
#description { display: none !important; }

/* ---------- Glow animations ----------
   Same keyframes/timings as the original. They animate only
   shadows, are GPU-friendly at these sizes and pause when the
   tab is hidden (browser default). */
.blue-glow { animation: blueGlow 3s linear infinite; box-shadow: 0 0 6px 1.5px #00e5ff; transition: box-shadow ease-in-out .3s; cursor: pointer; }
@keyframes blueGlow { 0%, 100% { box-shadow: 0 0 6px 1.5px #00e5ff; } 50% { box-shadow: 0 0 6px .5px #00e5ff; } }
.blue-text-glow { animation: blueTextGlow 1.5s linear infinite; }
.blue-text-glow-heading { animation: blueTextGlowHeading 2s linear infinite; }
@keyframes blueTextGlow { 0%, 100% { text-shadow: #00e5ff 0 0 1px; } 50% { text-shadow: #00e5ff 0 0 .5px; } }
@keyframes blueTextGlowHeading { 0%, 100% { text-shadow: #00e5ff 0 0 2px; } 50% { text-shadow: #00e5ff 0 0 1px; } }

.pink-text-glow { animation: pinkTextGlow 3s linear infinite; }
@keyframes pinkTextGlow { 0%, 100% { text-shadow: #fa26fa 0 0 2px; } 50% { text-shadow: #fa26fa 0 0 1px; } }
.pink-glow { animation: pinkGlow 3s linear infinite; box-shadow: 0 0 6px 1.5px #fa26fa; transition: box-shadow ease-in-out .3s; cursor: pointer; }
@keyframes pinkGlow { 0%, 100% { box-shadow: 0 0 6px 1.5px #fa26fa; } 50% { box-shadow: 0 0 6px .5px #fa26fa; } }

.green-glow { animation: greenGlow 3s linear infinite; box-shadow: 0 0 6px 1.5px #00ff00; transition: box-shadow ease-in-out .3s; cursor: pointer; }
@keyframes greenGlow { 0%, 100% { box-shadow: 0 0 6px 1.5px #00ff00; } 50% { box-shadow: 0 0 6px .5px #00ff00; } }
.green-text-glow { animation: greenTextGlow 1.5s linear infinite; }
.green-text-glow-heading { animation: greenTextGlowHeading 2s linear infinite; }
@keyframes greenTextGlow { 0%, 100% { text-shadow: #00ff00 0 0 1px; } 50% { text-shadow: #00ff00 0 0 .5px; } }
@keyframes greenTextGlowHeading { 0%, 100% { text-shadow: #00ff00 0 0 2px; } 50% { text-shadow: #00ff00 0 0 1px; } }

.white-glow { animation: whiteGlow 3s linear infinite; box-shadow: 0 0 6px 1.5px #fff; transition: box-shadow ease-in-out .3s; cursor: pointer; }
@keyframes whiteGlow { 0%, 100% { box-shadow: 0 0 6px 1.5px #fff; } 50% { box-shadow: 0 0 6px .5px #fff; } }
.white-text-glow { animation: whiteTextGlow 1.5s linear infinite; }
.white-text-glow-heading { animation: whiteTextGlowHeading 2s linear infinite; }
@keyframes whiteTextGlow { 0%, 100% { text-shadow: #fff 0 0 1px; } 50% { text-shadow: #fff 0 0 .5px; } }
@keyframes whiteTextGlowHeading { 0%, 100% { text-shadow: #fff 0 0 2px; } 50% { text-shadow: #fff 0 0 1px; } }

.floating-box { animation: float 4s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }

/* ---------- Main template: noise overlay + preloader ---------- */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background-image: url("../img/noise.webp");
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 99;
  opacity: .04;
  transform: translateZ(0); /* own compositor layer: no repaint of the page under it */
}
.next-post-btn { cursor: pointer; color: #fff; }
.pre-none { visibility: hidden; opacity: 0; }

#code_block-2-14 { z-index: 99; }
#preloader > .ct-section-inner-wrap { max-width: 100%; align-items: center; }
#preloader { z-index: 98; text-align: left; background-color: #000; width: 100vw; height: 100vh; position: fixed; top: 0; left: 0; bottom: 0; right: 0; }
#code_block-5-14 { display: none; }

/* Scroll-sequence (replaces the Scrollsequence plugin) */
.scrollsequence-wrap { position: relative; }
.scrollsequence-page { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.scrollsequence-page canvas { display: block; width: 100%; height: 100%; }

/* Scroll reveal (was GSAP ScrollTrigger fromTo blur(25px)/opacity 0 -> blur(0)/1, 0.5s power1.out) */
.js .blur-out { filter: blur(25px); opacity: 0; transition: filter .5s cubic-bezier(.25,.46,.45,.94), opacity .5s cubic-bezier(.25,.46,.45,.94); }
.js .blur-out.is-revealed { filter: blur(0); opacity: 1; }
