/* Infoscreentech – one-page site, styled after the original Avada theme */
:root {
  --cyan: #35baf2;
  --heading: #515b69;
  --text: #7f8795;
  --bg-light: #f4f6f8;
  --footer-bg: #ecf0f5;
  --header-h: 117px;
  --menu-active: #5288d8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font: 300 20px/1.85 "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 300; color: var(--heading); margin: 0 0 .45em; }
h1 { font-size: 50px; line-height: 1.16; }
h2 { font-size: 40px; line-height: 1.2; }
h3 { font-size: 28px; line-height: 1.18; }
p { margin: 0 0 1em; }
.center { text-align: center; }

.container { width: min(1170px, 100% - 60px); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: #000;
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.header-inner {
  width: 100%; height: 100%; padding-inline: calc(30px + 4%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { width: 283px; }
.main-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 35px; }
.main-menu a {
  display: flex; align-items: center; height: var(--header-h);
  padding-bottom: 22px; border-top: 3px solid transparent;
  color: #fff; font-weight: 600; font-size: 20px;
}
.main-menu a:hover, .main-menu a.active { color: var(--menu-active); text-decoration: none; }
.main-menu a.active { border-top-color: var(--menu-active); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* Hero (was a Revolution slider) */
.hero {
  position: relative;
  height: clamp(300px, 50vw, 700px);
  background: url(/images/glavna2-e1454131760426.jpg) center / cover;
  overflow: hidden;
}
/* caption positions measured on the original slider */
.hero-captions { position: absolute; inset: 0; }
.cap {
  position: absolute; right: max(16px, calc((100% - 1366px) / 2 + 26px));
  margin: 0; font-weight: 700; line-height: 1.2; color: var(--cyan);
  opacity: 0; animation: cap-in .9s ease-out forwards;
}
.cap-1, .cap-3 { padding: 6px 14px; font-size: clamp(24px, 4.1vw, 56px); background: rgba(255, 255, 255, .65); }
.cap-1 { top: 5.4%; }
.cap-2 { top: 28%; margin-right: 26px; font-size: clamp(22px, 3.6vw, 52px); animation-delay: .7s; }
.cap-3 { top: 51%; animation-delay: 1.4s; }
@keyframes cap-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 100px 0 80px; }
.section-gradient { background: var(--bg-light) url(/images/light_gradient_bg.jpg) center / cover; }
.section-communication { background: #f1f4f7 url(/images/smartphone_section_bg.jpg) center / cover; }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; align-items: start; }
.cols-2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 3%; align-items: center; }
.cols-2-3 h1:not(:first-child) { margin-top: 1em; }

#overview img { margin-inline: auto; }

.intro { max-width: 66.6%; margin: 0 auto 50px; text-align: center; }

/* "Unique with no limits" boxes */
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 30px; text-align: center; }
.box { display: block; color: var(--text); }
.box:hover { text-decoration: none; }
.box-icon {
  display: inline-grid; place-items: center;
  width: 122px; height: 122px; margin-bottom: 16px;
  border-radius: 50%; background: var(--cyan); color: #fff;
  transition: transform .3s;
}
.box:hover .box-icon { transform: scale(1.08); }
.box-icon svg { width: 62px; height: 62px; fill: currentColor; }
.box h2 { font-size: 32px; }
.box p { max-width: 500px; margin: 0 auto; }

/* Software */
.software-media img { margin: 0 auto 40px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; margin-top: 40px; }
.feature { position: relative; padding-left: 72px; }
.feature img { position: absolute; left: 0; top: 2px; width: 52px; height: 35px; object-fit: contain; }
.feature h3 { margin-bottom: .5em; }

/* Betting tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile { padding: 5.5vw; text-align: center; }
.tile:nth-child(1) { background: #37507a; }
.tile:nth-child(2) { background: #415b86; }
.tile:nth-child(3) { background: #4b6590; }
.tile:nth-child(4) { background: #56709c; }
.tile h2 { color: #fff; margin-bottom: .5em; }
.tile img { margin: 0 auto 1.2em; transition: transform .3s; }
.tile img:hover { transform: scale(1.04); }
.tile p { color: #bac5d0; margin: 0; }

/* LED banner */
.led {
  padding: 25% 0 40px;
  background: url(/images/led-1024x514.jpg) center / cover;
}
.led-text { width: 50%; padding: 30px; }
.led-text h1, .led-text p { color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.led-text h1 { font-weight: 700; }

/* Encoders / players */
.products { display: grid; gap: 30px; margin-top: 60px; text-align: center; }
.products-2 { grid-template-columns: repeat(2, 1fr); max-width: 66.6%; margin-inline: auto; gap: 8%; }
.products-3 { grid-template-columns: repeat(3, 1fr); }
.product h2 { font-size: 50px; margin-bottom: .3em; }
.product img { margin: 0 auto 30px; }
.product ul { list-style: none; margin: 0; padding: 0; }
.product li { line-height: 57px; }

/* Video */
.video { padding: 35px 16px; }
.video-frame { max-width: 600px; margin: 0 auto; aspect-ratio: 600 / 350; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* About us */
.about { background: var(--cyan); color: #fff; padding: 55px 0 70px; }
.about h1 { color: #fff; }
.about-text { max-width: 66.6%; }
.about address { font-style: normal; }
.about a { color: #fff; }

/* Footer */
.site-footer { background: var(--footer-bg); padding: 40px 16px; text-align: center; font-size: 16px; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

.to-top {
  position: fixed; right: 20px; bottom: 0; z-index: 40;
  width: 48px; height: 35px; display: grid; place-items: center;
  background: #333; border-radius: 4px 4px 0 0;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; }
.to-top.show { opacity: .85; pointer-events: auto; }

/* Scroll animations (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(-30px); transition: opacity .7s, transform .7s; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .cap { opacity: 1; transform: none; transition: none; animation: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .main-menu ul { gap: 20px; }
  .main-menu a { font-size: 17px; }
  .logo img { width: 220px; }
}
@media (max-width: 960px) {
  :root { --header-h: 80px; }
  body { font-size: 18px; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .logo img { width: 200px; }
  .menu-toggle { display: block; }
  .main-menu { position: absolute; top: 100%; left: 0; right: 0; background: #000; display: none; }
  .menu-open .main-menu { display: block; }
  .main-menu ul { flex-direction: column; gap: 0; padding: 0 30px 16px; }
  .main-menu a { height: auto; border: 0; border-top: 1px solid #222; padding: 8px 0; }
  .cols-2, .cols-2-3 { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .products-2, .intro, .about-text { max-width: none; }
  .products-3 { grid-template-columns: 1fr 1fr; }
  .led-text { width: 100%; }
  .product h2 { font-size: 40px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .boxes, .features, .tiles, .products-2, .products-3 { grid-template-columns: 1fr; }
  .tile { padding: 50px 24px; }
  .led { padding-top: 40%; }
  .led-text { padding: 0; }
  .cap-2 { margin-right: 12px; }
}

/* 404 */
.not-found { min-height: 60vh; padding: 80px 0; text-align: center; }
.not-found h1 { font-size: 90px; color: var(--cyan); margin: 0; }
.btn { display: inline-block; margin-top: 1rem; padding: 12px 30px; background: var(--cyan); color: #fff; font-weight: 600; border-radius: 2px; }
.btn:hover { text-decoration: none; opacity: .9; }
