/* =========================================================
   Primomarka Frontend Custom Overrides
   --------------------------------------------------------- */

:root {
  --color-primary: #004aad;
  --color-primary-dark: #002a6e;
  --color-accent: #ffd500;
  --color-surface: #0f1424;
  --color-surface-light: #0f1a32;
  --color-text: #edf0f8;
  --color-muted: #9aa4c2;
  --shadow-soft: 0 24px 54px rgba(0, 27, 66, 0.35);
  --radius-lg: 24px;
  --transition-base: 220ms ease;
  --navbar-height: 82px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(0, 74, 173, 0.15), transparent 45%) var(--color-surface);
  color: var(--color-text);
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

a:hover {
  color: #ffef80;
}

/* =====================
   Preloader
===================== */
.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 9, 22, 0.92);
  z-index: 1400;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.preloader__inner img {
  width: clamp(60px, 10vw, 96px);
  height: auto;
  border-radius: 50%;
  padding: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 70%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 213, 0, 0.25);
}

.preloader__bar {
  width: clamp(160px, 30vw, 240px);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.preloader__progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  animation: preloaderSweep 1.4s ease-in-out infinite;
}

@keyframes preloaderSweep {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(-35%); }
  100% { transform: translateX(100%); }
}

/* =====================
   Navbar
===================== */
.primomarka-navbar {
  background: linear-gradient(120deg, rgba(1, 16, 42, 0.92), rgba(0, 74, 173, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.primomarka-navbar.scrolled {
  background: linear-gradient(120deg, rgba(1, 8, 20, 0.95), rgba(0, 32, 89, 0.9));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.primomarka-navbar .brand-logo {
  width: clamp(42px, 4vw, 56px);
  border-radius: 50%;
  padding: 6px;
  background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.18), transparent 70%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 213, 0, 0.35);
}

.primomarka-navbar .brand-copy {
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ffd500, #ffffff, #68a6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.dropdown-menu {
  background: rgba(5, 12, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.85);
}

.dropdown-item:hover {
  background: rgba(0, 74, 173, 0.35);
  color: #fff;
}

.thm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.9rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd500, #ffb000);
  color: #0e213c;
  font-weight: 600;
  border: none;
  box-shadow: 0 20px 40px rgba(255, 208, 0, 0.25);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.thm-btn.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 74, 173, 0.45);
}

.thm-btn-two {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* =====================
   Hero Section
===================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--navbar-height) + 4rem);
  padding-bottom: 6rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(0, 74, 173, 0.25), rgba(0, 8, 20, 0.92));
  overflow: hidden;
}

.hero__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 992px) {
  .hero__layout {
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
  }
}

.hero__copy {
  max-width: 640px;
}

.hero__subheadline {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__subheadline::after {
  content: "";
  display: inline-block;
  width: clamp(40px, 10vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.hero__headline {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__headline-lead {
  display: inline-block;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.neon-text {
  background: linear-gradient(90deg, #ffd500, #ffffff, #68a6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text {
  text-shadow: 0 0 18px rgba(255, 213, 0, 0.35), 0 0 28px rgba(0, 74, 173, 0.35);
}

.hero__typewriter {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
  overflow: hidden;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 0 6px rgba(0, 74, 173, 0.3);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

.hero__media-image-wrapper {
  position: relative;
  max-width: clamp(320px, 50vw, 520px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 30, 80, 0.35);
}

.hero__media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.hero__typewriter::after {
  content: "|";
  color: var(--color-accent);
  margin-left: 0.12em;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 213, 0, 0.9), 0 0 12px rgba(0, 74, 173, 0.4);
  animation: blink 1s steps(1, end) infinite;
}

.typewriter-text {
  display: inline-block;
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__tagline {
  color: rgba(229, 236, 255, 0.8);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.metrics-counter {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.metrics-counter__item {
  text-align: center;
}

.metrics-counter__value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.laptop-3d {
  transform-style: preserve-3d;
  transform: rotateY(-6deg) rotateX(12deg);
  transition: transform 0.6s ease;
}

.screen {
  width: clamp(320px, 52vw, 620px);
  height: clamp(220px, 36vw, 380px);
  border-radius: 20px;
  overflow: hidden;
  background: #010b1e;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 64px rgba(0, 74, 173, 0.35);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laptop-base {
  width: clamp(340px, 55vw, 660px);
  height: 16px;
  margin: -8px auto 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, #3f3f42, #161616);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.5);
}

.ambient-glow {
  position: absolute;
  inset: -28px;
  background: radial-gradient(circle at 50% 60%, rgba(0, 74, 173, 0.35), transparent 70%);
  filter: blur(6px);
  animation: ambientPulse 6s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes ambientPulse {
  from { opacity: 0.4; transform: scale(0.98); }
  to { opacity: 0.8; transform: scale(1.08); }
}

.light-reflection {
  position: absolute;
  inset: -20% 10%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05), transparent 65%);
  transform: translateX(-120%) rotate(8deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 213, 0, 0.2), transparent 60%),
              radial-gradient(circle at 10% 90%, rgba(0, 74, 173, 0.35), transparent 70%);
}

/* =====================
   Sections & Cards
===================== */
.page-section {
  padding: 4.5rem 0;
  position: relative;
  color: rgba(237, 240, 248, 0.92);
}

.page-section.slice--surface {
  background: rgba(7, 12, 27, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-section__heading .subtitle {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.58);
}

.lead,
.text-muted {
  color: rgba(197, 205, 225, 0.78) !important;
}

.value-card,
.service-card,
.project-card,
.team-card {
  background: rgba(9, 16, 34, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover,
.service-card:hover,
.project-card:hover,
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 74, 173, 0.28);
}

.footer-brand .brand-logo {
  width: clamp(52px, 8vw, 72px);
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 70%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 213, 0, 0.2);
}

.site-footer {
  background: rgba(5, 9, 22, 0.96);
  color: rgba(229, 234, 248, 0.85);
}

.site-footer a {
  color: rgba(160, 190, 255, 0.9);
}

.site-footer a:hover {
  color: #fff;
}

.footer-social {
  gap: 1.25rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  background: rgba(255, 213, 0, 0.18);
  color: #ffd500;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social__icon {
  display: inline-flex;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* =====================
   Helpers
===================== */
.magnet-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: calc(var(--navbar-height) + 2rem);
  }
  .hero__layout {
    gap: 2.5rem;
  }
  .navbar-cta {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .hero__headline {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
  .screen {
    width: 100%;
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

