/* ==========================================================================
   HASH SISTEMI (hash.ba) — Master Design Tokens & Core Stylesheet
   Paleta: Neon Mint (#36ECDE), Core Navy (#00203F), Soft Gray (#E6E9EC), Graphite (#2F2F2F)
   ========================================================================== */

/* Local Self-Hosted Fonts for HASH Sistemi (Privacy & Performance) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Zvanične Boje Brenda */
  --neon-mint: #36ECDE;
  --neon-mint-hover: #2cd4c7;
  --neon-mint-glow: rgba(54, 236, 222, 0.22);
  --neon-mint-subtle: rgba(54, 236, 222, 0.08);

  --core-navy: #00203F;
  --navy-dark: #001428;
  --navy-deep: #000B17;
  --navy-card: #00284F;
  --navy-card-hover: #003366;
  --navy-border: rgba(54, 236, 222, 0.15);
  --navy-border-hover: rgba(54, 236, 222, 0.45);

  --soft-gray: #E6E9EC;
  --graphite: #2F2F2F;
  --muted: #8C9BAE;

  /* Tipografija */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Prijelazi & Efekti */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--navy-deep);
  color: var(--soft-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #002244 0%, #000B17 70%);
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Tipografski elementi */
h1, h2, h3, h4, h5, h6 {
  color: var(--soft-gray);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

.text-mint { color: var(--neon-mint); }
.text-muted { color: var(--muted); }
.text-white { color: #ffffff; }

/* Bento Mreža */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: linear-gradient(180deg, rgba(0, 40, 79, 0.6) 0%, rgba(0, 20, 40, 0.8) 100%);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-smooth), border-color 0.35s ease, box-shadow 0.4s ease;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--navy-border-hover);
  box-shadow: 0 20px 45px -12px rgba(0, 10, 25, 0.9), 0 0 35px var(--neon-mint-glow);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54, 236, 222, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(360px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(54, 236, 222, 0.14), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.bento-card:hover::after {
  opacity: 1;
}

/* Dugmad (CTA) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  letter-spacing: -0.01em;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--neon-mint);
  color: var(--navy-deep);
  box-shadow: 0 4px 20px rgba(54, 236, 222, 0.3);
}

.btn-primary:hover {
  background-color: var(--neon-mint-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(54, 236, 222, 0.5);
}

.btn-secondary {
  background: rgba(0, 32, 63, 0.5);
  color: var(--soft-gray);
  border: 1px solid var(--navy-border);
}

.btn-secondary:hover {
  border-color: var(--neon-mint);
  color: var(--neon-mint);
  background: var(--neon-mint-subtle);
  transform: translateY(-2px);
}

/* Oznake (Pill / Badges) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--neon-mint-subtle);
  border: 1px solid rgba(54, 236, 222, 0.25);
  color: var(--neon-mint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon-mint);
  box-shadow: 0 0 10px var(--neon-mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Navigacija */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 11, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(54, 236, 222, 0.12);
  padding: 0.85rem 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-mint);
}

/* Dugme za otvaranje mobilnog menija */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  background: rgba(0, 32, 63, 0.6);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  z-index: 110;
  transition: all 0.3s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--soft-gray);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--neon-mint);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--neon-mint);
}

/* Mobilna navigaciona ladica */
.mobile-nav-drawer {
  display: none;
}

/* WhatsApp Plutajući Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #001428;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.3s var(--ease-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  color: #001428;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(54, 236, 222, 0.1);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== HERO 3D TECH STAGE & ANIMACIJE ==================== */
.hero-stage-wrap {
  perspective: 1000px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tech-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 440px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 40, 79, 0.7) 0%, rgba(0, 15, 30, 0.95) 80%);
  border: 1px solid rgba(54, 236, 222, 0.3);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0, 10, 25, 0.9), 0 0 50px rgba(54, 236, 222, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
  overflow: visible;
}

/* Rotirajući tehnički krugovi u pozadini */
.tech-orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tech-orbit-ring.outer {
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(54, 236, 222, 0.2);
  animation: orbitRotate 30s linear infinite;
}

.tech-orbit-ring.inner {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(54, 236, 222, 0.12);
  box-shadow: 0 0 30px rgba(54, 236, 222, 0.08) inset;
  animation: orbitRotateRev 20s linear infinite;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero Text Smooth Entrance (GPU Composited - 0 Forced Reflows) */
@keyframes heroTextSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim-badge { animation: heroTextSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-anim-title { animation: heroTextSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.hero-anim-desc  { animation: heroTextSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both; }
.hero-anim-cta   { animation: heroTextSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }

@keyframes orbitRotateRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Lebdeći centralni čvrsti simbol (nakon okupljanja čestica) */
.hero-solid-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: autoRevealLogo 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes autoRevealLogo {
  0%, 65% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-solid-logo.visible {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.hero-solid-logo img {
  width: 200px;
  height: auto;
  max-width: 58%;
  filter: drop-shadow(0 0 25px rgba(54, 236, 222, 0.65)) drop-shadow(0 0 50px rgba(54, 236, 222, 0.25));
  animation: logoFloat 4.5s ease-in-out infinite;
}

/* Lebdeći centralni simbol (fallback) */
.hero-floating-logo {
  position: relative;
  z-index: 5;
  width: 170px;
  height: auto;
  filter: drop-shadow(0 0 35px rgba(54, 236, 222, 0.55));
  animation: logoFloat 4.5s ease-in-out infinite;
  transform: translateZ(40px);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

/* Lebdeći bedževi (Go4Codes style) */
.hero-badge-float {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 20, 40, 0.88);
  border: 1px solid rgba(54, 236, 222, 0.35);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--soft-gray);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(54, 236, 222, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
}

.hero-badge-float.top-right {
  top: -15px;
  right: -20px;
  animation: badgeFloat1 5s ease-in-out infinite;
}

.hero-badge-float.bottom-left {
  bottom: 58px;
  left: -25px;
  animation: badgeFloat2 6s ease-in-out infinite;
}

.hero-badge-float.bottom-right {
  bottom: -15px;
  right: 25px;
  animation: badgeFloat3 5.5s ease-in-out infinite;
}

@keyframes badgeFloat1 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes badgeFloat2 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(8px) rotate(1deg); }
}

@keyframes badgeFloat3 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}

/* Status konzola na dnu kartice */
.hero-stage-console {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  background: rgba(0, 10, 20, 0.7);
  border: 1px solid rgba(54, 236, 222, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==================== RESPONZIVNI PRELOMI (TABLET & MOBITEL) ==================== */

/* Hero i opšti grid sistemi */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 3rem;
}

.contact-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 2.5rem;
  align-items: start;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 991px) {
  /* Navigacija */
  .nav-links {
    display: none !important;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 11, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--navy-border);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    z-index: 105;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-nav-drawer.open {
    display: flex;
    animation: fadeInSlide 0.25s ease forwards;
  }

  .mobile-nav-drawer .nav-link {
    font-size: 1.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(54, 236, 222, 0.08);
    display: block;
    color: var(--soft-gray);
  }

  .mobile-nav-drawer .nav-link.active,
  .mobile-nav-drawer .nav-link:hover {
    color: var(--neon-mint);
    padding-left: 6px;
  }

  .mobile-nav-drawer .btn-primary {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
  }

  /* Grid adaptacije na 1 kolonu */
  .hero-grid,
  .two-col-grid,
  .contact-grid,
  .qr-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .contact-grid {
    padding: 1.5rem !important;
  }

  .qr-grid {
    padding: 1.5rem !important;
  }

  .bento-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .bento-card {
    grid-column: span 12 !important;
    width: 100% !important;
    padding: 1.75rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Hero 3D Stage na tabletima i mobitelima */
  .hero-stage-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 0;
    perspective: 800px;
  }

  .hero-tech-stage {
    max-width: 100%;
    height: 350px;
    padding: 1rem;
  }

  .tech-orbit-ring.outer {
    width: 220px;
    height: 220px;
  }

  .tech-orbit-ring.inner {
    width: 160px;
    height: 160px;
  }

  .hero-floating-logo,
  .hero-solid-logo img {
    width: 135px;
  }

  .hero-badge-float {
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  }

  .hero-badge-float.top-right {
    top: 8px;
    right: 8px;
  }

  .hero-badge-float.bottom-left,
  .hero-badge-float.bottom-right {
    display: none;
  }

  .hero-stage-console {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 0.68rem;
    padding: 6px 10px;
  }

  /* Plutajući WhatsApp */
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  /* Telefoni */
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.3rem) !important;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 1.9rem) !important;
  }

  p {
    font-size: 0.95rem;
  }

  .bento-card {
    padding: 1.25rem !important;
  }

  .hero-tech-stage {
    height: 300px;
  }

  .tech-orbit-ring.outer {
    width: 190px;
    height: 190px;
  }

  .tech-orbit-ring.inner {
    width: 140px;
    height: 140px;
  }

  .hero-floating-logo,
  .hero-solid-logo img {
    width: 115px;
  }

  .contact-services-grid,
  .contact-form-row {
    grid-template-columns: 1fr !important;
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== ČLANCI & SAVJETI (BLOG / HUB) ==================== */
.article-header {
  margin-bottom: 2.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #D1D5DB;
}

.article-content p {
  margin-bottom: 1.6rem;
  color: #D1D5DB;
}

.article-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--soft-gray);
  margin: 2.8rem 0 1.2rem;
  line-height: 1.35;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(54, 236, 222, 0.15);
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--neon-mint);
  margin: 2rem 0 0.8rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.8rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: #D1D5DB;
}

.article-callout {
  background: rgba(0, 32, 63, 0.55);
  border-left: 4px solid var(--neon-mint);
  padding: 1.5rem 1.8rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(0, 32, 63, 0.35);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  margin-top: 3.5rem;
  margin-bottom: 3rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover h3 {
  color: var(--neon-mint);
}

/* ==========================================================================
   INTERACTIVE SCROLL REVEAL & LIVING UI ANIMATIONS
   ========================================================================== */

/* 1. Neon Scroll Reading Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #36ECDE, #2cd4c7, #36ECDE);
  box-shadow: 0 0 14px rgba(54, 236, 222, 0.85), 0 0 4px #36ECDE;
  z-index: 99999;
  pointer-events: none;
  transition: width 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Scroll Reveal Engine (60fps GPU Composited) */
.reveal-init {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.reveal-scale {
  transform: scale(0.93) translateY(24px);
}

.reveal-init.reveal-left {
  transform: translateX(-40px);
}

.reveal-init.reveal-right {
  transform: translateX(40px);
}

.reveal-init.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) translateX(0) !important;
}

/* Staggered delay klase za fluidan talas */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.18s !important; }
.delay-3 { transition-delay: 0.28s !important; }
.delay-4 { transition-delay: 0.38s !important; }

/* 3. Portfolio Hover Zoom & Glow */
.portfolio-card-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
}

.portfolio-card-img-wrap img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  will-change: transform;
}

.bento-card:hover .portfolio-card-img-wrap img {
  transform: scale(1.05);
  filter: brightness(1.06) contrast(1.02);
}

/* 4. Shimmer svjetlosni prelaz na primarnim CTA dugmadima */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: btnShimmerSweep 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes btnShimmerSweep {
  0% { left: -70%; }
  100% { left: 140%; }
}

/* 5. FAQ interakcija rotacije plus znaka i aktivnog okvira */
.faq-item {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item .faq-question span {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
  transform-origin: center center;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
  color: var(--neon-mint);
}

.faq-item.active {
  border-color: rgba(54, 236, 222, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(54, 236, 222, 0.12) inset;
}

/* 6. Završni CTA pulsirajući neonski okvir */
.cta-glow-card {
  position: relative;
  animation: ctaAuraPulse 5s ease-in-out infinite;
}

@keyframes ctaAuraPulse {
  0%, 100% {
    border-color: rgba(54, 236, 222, 0.25);
    box-shadow: 0 20px 50px rgba(0, 10, 25, 0.8), 0 0 30px rgba(54, 236, 222, 0.08);
  }
  50% {
    border-color: rgba(54, 236, 222, 0.55);
    box-shadow: 0 25px 65px rgba(0, 10, 25, 0.95), 0 0 50px rgba(54, 236, 222, 0.22);
  }
}

/* 7. Usluge ikonica lebdenje */
.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--neon-mint-subtle);
  border: 1px solid rgba(54, 236, 222, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--neon-mint);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.bento-card:hover .service-icon-box {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--neon-mint);
  box-shadow: 0 0 20px rgba(54, 236, 222, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cta-glow-card {
    animation: none !important;
  }
}


