/* ===== BASE & CUSTOM STYLES ===== */

html, body {
  overflow-x: hidden;
  /* Sprječava horizontalni scroll — blobovi/elementi ne smiju ići van viewport-a */
}

body { position: relative; }


/* Global background canvas — shapes live here, never clipped by sections */
#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}


/* Navbar scroll effect */
header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Navbar kad je mobilni meni otvoren — potpuno bijela, bez border separatora */
header.menu-open {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

/* Nav links */
.nav-link {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a56ff, #7c3aed);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #0f172a; }
.nav-link:hover::after { width: 100%; }

/* Mobile nav links */
.mobile-nav-link {
  display: block;
  color: #475569;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: #1a56ff; }

/* Mobile menu animation */
.mobile-menu-closed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-open {
  max-height: 800px;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger lines */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
#menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1a56ff 0%, #7c3aed 100%);
  background-size: 100% 100%;
  animation: btnHueShift 8s ease-in-out infinite alternate;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 15px rgba(26, 86, 255, 0.25);
  cursor: pointer;
  border: none;
  text-decoration: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: filter;
  -webkit-font-smoothing: antialiased;
}
@keyframes btnHueShift {
  0%   { filter: hue-rotate(0deg)   brightness(1); }
  100% { filter: hue-rotate(20deg)  brightness(1.08); }
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 255, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
  background: rgba(15, 23, 42, 0.03);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 0.875rem;
}

/* ===== HERO ===== */
.gradient-text {
  background: linear-gradient(135deg, #1a56ff 0%, #7c3aed 25%, #1a56ff 50%, #7c3aed 75%, #1a56ff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShineMulti 10s ease infinite;
  padding-bottom: 0.1em; /* Sprječava sječenje donjih djelova slova (g, j, p) */
}

@keyframes textShineMulti {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== ABSTRACT BACKGROUND BLOBS ===== */
.bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  /* GPU compositing — sprječava iOS Safari blur bug gdje se blob prikazuje kao pravougaonik */
  will-change: transform, border-radius;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Apstraktni splat — multicolor */
.shape-brand-1 {
  width: 420px; height: 320px;
  background: linear-gradient(135deg,
    #f472b6 0%,
    #a78bfa 22%,
    #38bdf8 45%,
    #818cf8 68%,
    #f9a8d4 100%);
  border-radius: 15% 85% 62% 38% / 70% 25% 75% 30%;
  filter: blur(52px);
  opacity: 0.60;
  animation: morphShape1 18s ease-in-out infinite alternate;
}

/* Ameba — roze-ljubičasta */
.shape-brand-2 {
  width: 380px; height: 440px;
  background: linear-gradient(160deg, #f0abfc 0%, #c084fc 45%, #a78bfa 100%);
  border-radius: 30% 70% 70% 30% / 52% 28% 72% 48%;
  filter: blur(60px);
  opacity: 0.45;
  animation: morphShape2 22s ease-in-out infinite alternate;
}

/* Kaplja — cyan-plava */
.shape-brand-3 {
  width: 300px; height: 390px;
  background: linear-gradient(200deg, #67e8f9 0%, #60a5fa 50%, #818cf8 100%);
  border-radius: 50% 50% 30% 70% / 60% 40% 80% 20%;
  filter: blur(50px);
  opacity: 0.50;
  animation: morphShape3 16s ease-in-out infinite alternate;
}

/* Trokutasti blob — indigo-roze */
.shape-brand-4 {
  width: 360px; height: 260px;
  background: linear-gradient(80deg, #e879f9 0%, #818cf8 50%, #60a5fa 100%);
  border-radius: 20% 80% 60% 40% / 70% 30% 40% 60%;
  filter: blur(58px);
  opacity: 0.40;
  animation: morphShape4 25s ease-in-out infinite alternate;
}

/* Splat — ljubičasto-cyan */
.shape-brand-5 {
  width: 450px; height: 300px;
  background: linear-gradient(310deg, #c4b5fd 0%, #7dd3fc 50%, #a78bfa 100%);
  border-radius: 63% 37% 54% 46% / 43% 74% 26% 57%;
  filter: blur(65px);
  opacity: 0.38;
  animation: morphShape5 19s ease-in-out infinite alternate;
}

/* Duguljast — ljubičasto-cyan */
.shape-brand-6 {
  width: 280px; height: 480px;
  background: linear-gradient(170deg, #fbcfe8 0%, #c084fc 40%, #60a5fa 100%);
  border-radius: 40% 60% 20% 80% / 55% 80% 20% 45%;
  filter: blur(52px);
  opacity: 0.42;
  animation: morphShape6 21s ease-in-out infinite alternate;
}

/* Izdužen — plavo-ljubičasto-roze */
.shape-brand-7 {
  width: 480px; height: 230px;
  background: linear-gradient(120deg, #1a56ff 0%, #7c3aed 50%, #db2777 100%);
  border-radius: 72% 28% 55% 45% / 38% 62% 38% 62%;
  filter: blur(62px);
  opacity: 0.35;
  animation: morphShape7 24s ease-in-out infinite alternate;
}

/* Asimetričan — roze-ljubičasto-plava */
.shape-brand-8 {
  width: 380px; height: 380px;
  background: linear-gradient(220deg, #db2777 0%, #7c3aed 50%, #1a56ff 100%);
  border-radius: 28% 72% 44% 56% / 68% 32% 68% 32%;
  filter: blur(58px);
  opacity: 0.33;
  animation: morphShape8 20s ease-in-out infinite alternate;
}

/* Advanced Random Drifting, Diagonal Sweeping & Morphing Animations */
@keyframes morphShape1 {
  0%   { border-radius: 15% 85% 62% 38% / 70% 25% 75% 30%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { border-radius: 45% 55% 22% 78% / 30% 65% 35% 70%; transform: translate(40vw, -10vh) rotate(30deg) scale(1.05); }
  50%  { border-radius: 85% 15% 72% 28% / 50% 45% 55% 50%; transform: translate(75vw, 20vh) rotate(60deg) scale(1.1); }
  75%  { border-radius: 35% 65% 42% 58% / 60% 25% 75% 40%; transform: translate(35vw, 15vh) rotate(15deg) scale(0.95); }
  100% { border-radius: 25% 75% 42% 58% / 80% 35% 65% 20%; transform: translate(-5vw, -15vh) rotate(-15deg) scale(1.02); }
}

@keyframes morphShape2 {
  0%   { border-radius: 30% 70% 70% 30% / 52% 28% 72% 48%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { border-radius: 70% 30% 40% 60% / 28% 72% 28% 52%; transform: translate(-20vw, -15vh) rotate(-35deg) scale(1.15); }
  50%  { border-radius: 40% 60% 80% 20% / 62% 38% 62% 38%; transform: translate(-35vw, 10vh) rotate(-10deg) scale(0.9); }
  75%  { border-radius: 60% 40% 30% 70% / 40% 60% 70% 30%; transform: translate(15vw, 25vh) rotate(25deg) scale(1.05); }
  100% { border-radius: 50% 50% 60% 40% / 30% 70% 50% 50%; transform: translate(22vw, -22vh) rotate(45deg) scale(1.1); }
}

@keyframes morphShape3 {
  0%   { border-radius: 50% 50% 30% 70% / 60% 40% 80% 20%; transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { border-radius: 20% 80% 50% 50% / 30% 70% 30% 70%; transform: translate(18vw, 22vh) scale(0.9) rotate(25deg); }
  50%  { border-radius: 80% 20% 70% 30% / 80% 20% 60% 40%; transform: translate(-15vw, 35vh) scale(1.15) rotate(55deg); }
  75%  { border-radius: 30% 70% 20% 80% / 50% 50% 20% 80%; transform: translate(-28vw, -12vh) scale(0.95) rotate(-20deg); }
  100% { border-radius: 60% 40% 50% 50% / 70% 30% 80% 20%; transform: translate(12vw, -25vh) scale(1.05) rotate(-45deg); }
}

@keyframes morphShape4 {
  0%   { border-radius: 20% 80% 60% 40% / 70% 30% 40% 60%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { border-radius: 60% 40% 20% 80% / 30% 70% 60% 40%; transform: translate(-28vw, 15vh) rotate(-45deg) scale(1.1); }
  50%  { border-radius: 40% 60% 80% 20% / 50% 50% 20% 80%; transform: translate(-10vw, -28vh) rotate(15deg) scale(0.9); }
  75%  { border-radius: 80% 20% 40% 60% / 60% 40% 70% 30%; transform: translate(25vw, -10vh) rotate(60deg) scale(1.05); }
  100% { border-radius: 30% 70% 50% 50% / 40% 60% 30% 70%; transform: translate(15vw, 22vh) rotate(20deg) scale(1.15); }
}

@keyframes morphShape5 {
  0%   { border-radius: 63% 37% 54% 46% / 43% 74% 26% 57%; transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { border-radius: 37% 63% 46% 54% / 74% 43% 57% 26%; transform: translate(25vw, -20vh) scale(1.2) rotate(35deg); }
  50%  { border-radius: 54% 46% 63% 37% / 26% 57% 43% 74%; transform: translate(-12vw, -35vh) scale(0.85) rotate(-15deg); }
  75%  { border-radius: 20% 80% 30% 70% / 60% 40% 20% 80%; transform: translate(-22vw, 18vh) scale(1.05) rotate(-55deg); }
  100% { border-radius: 70% 30% 50% 50% / 30% 70% 60% 40%; transform: translate(18vw, 30vh) scale(1.1) rotate(20deg); }
}

@keyframes morphShape6 {
  0%   { border-radius: 40% 60% 20% 80% / 55% 80% 20% 45%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { border-radius: 80% 20% 60% 40% / 20% 45% 80% 55%; transform: translate(35vw, 12vh) rotate(45deg) scale(0.9); }
  50%  { border-radius: 20% 80% 40% 60% / 80% 20% 55% 45%; transform: translate(15vw, -25vh) rotate(-30deg) scale(1.15); }
  75%  { border-radius: 60% 40% 80% 20% / 45% 55% 45% 80%; transform: translate(-28vw, -10vh) rotate(-65deg) scale(0.95); }
  100% { border-radius: 50% 50% 30% 70% / 40% 60% 70% 30%; transform: translate(-15vw, 28vh) rotate(15deg) scale(1.05); }
}

@keyframes morphShape7 {
  0%   { border-radius: 72% 28% 55% 45% / 38% 62% 38% 62%; transform: translate(0, 0) rotate(0deg) scale(1); }
  20%  { border-radius: 28% 72% 38% 62% / 62% 38% 62% 38%; transform: translate(-30vw, -8vh) rotate(-25deg) scale(1.12); }
  45%  { border-radius: 55% 45% 72% 28% / 48% 52% 28% 72%; transform: translate(20vw, 15vh) rotate(40deg) scale(0.88); }
  70%  { border-radius: 38% 62% 28% 72% / 72% 28% 55% 45%; transform: translate(-10vw, 25vh) rotate(-50deg) scale(1.08); }
  100% { border-radius: 62% 38% 45% 55% / 30% 70% 45% 55%; transform: translate(28vw, -18vh) rotate(20deg) scale(0.95); }
}

@keyframes morphShape8 {
  0%   { border-radius: 28% 72% 44% 56% / 68% 32% 68% 32%; transform: translate(0, 0) rotate(0deg) scale(1); }
  30%  { border-radius: 72% 28% 56% 44% / 32% 68% 32% 68%; transform: translate(22vw, 20vh) rotate(55deg) scale(1.1); }
  55%  { border-radius: 44% 56% 72% 28% / 55% 45% 38% 62%; transform: translate(-25vw, 12vh) rotate(-20deg) scale(0.9); }
  80%  { border-radius: 56% 44% 28% 72% / 42% 58% 62% 38%; transform: translate(-15vw, -20vh) rotate(-60deg) scale(1.15); }
  100% { border-radius: 35% 65% 55% 45% / 60% 40% 50% 50%; transform: translate(18vw, -10vh) rotate(30deg) scale(0.92); }
}

/* ===== SECTION WAVE DIVIDERS ===== */
.wave-divider {
  position: relative;
  z-index: 5;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

/* Light Grid background overlay */
.grid-overlay-light {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hero entrance animations */
.hero-badge  { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title  { animation: fadeUp 0.7s ease 0.25s both; }
.hero-sub    { animation: fadeUp 0.7s ease 0.4s both; }
.hero-cta    { animation: fadeUp 0.7s ease 0.55s both; }
.hero-stats  { animation: fadeUp 0.7s ease 0.7s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats */
.stat-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  border-color: rgba(26, 86, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ===== SECTION UTILITIES ===== */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  color: #1a56ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-sub {
  color: #475569;
  font-size: 1.05rem;
  max-width: 42ch;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  border-radius: 1.5rem;
  padding: 0;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a56ff, #7c3aed);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
}
@media (hover: hover) {
  .service-card:hover {
    border-color: rgba(26, 86, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }
  .service-card:hover::before { opacity: 1; }
}
.service-card.open {
  border-color: rgba(26, 86, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
}

/* Card header (always visible) */
.service-card-header {
  padding: 2rem 2.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.service-card-header-left { flex: 1; min-width: 0; }

/* Chevron */
.service-chevron {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(26, 86, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card.open .service-chevron {
  transform: rotate(180deg);
  background: rgba(26, 86, 255, 0.12);
}
.service-chevron svg {
  width: 14px;
  height: 14px;
  stroke: #1a56ff;
  stroke-width: 2.5;
  transition: stroke 0.3s;
}

/* Expand panel */
.service-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card.open .service-expand {
  max-height: 1200px;
}
.service-expand-inner {
  padding: 0 2.25rem 2rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}
.service-card.open .service-expand-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Divider inside card */
.service-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,86,255,0.15), transparent);
  margin: 0 2.25rem 1.75rem;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}
.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}
.service-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Expand content blocks */
.expand-block { margin-bottom: 1.25rem; }
.expand-block:last-child { margin-bottom: 0; }
.expand-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a56ff;
  margin-bottom: 0.6rem;
}
.expand-text {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
}
.expand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.expand-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}
.expand-list li::before {
  content: '✓';
  color: #1a56ff;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}
.expand-results {
  background: linear-gradient(135deg, rgba(26,86,255,0.05) 0%, rgba(124,58,237,0.05) 100%);
  border: 1px solid rgba(26,86,255,0.1);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
}
.expand-results-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.expand-results p {
  color: #374151;
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 500;
}

/* ===== METRIC CARDS ===== */
.metric-card {
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: #dce6ff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.metric-number { font-size: 2.75rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.metric-label  { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin-bottom: 0.25rem; }
.metric-sub    { font-size: 0.85rem; color: #64748b; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: #dce6ff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

/* ===== PROCESS STEPS ===== */
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.25rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.process-step:hover {
  transform: translateX(6px);
  border-color: #dce6ff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.process-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1a56ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 3rem;
}
.process-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.process-desc { color: #475569; font-size: 0.95rem; line-height: 1.65; }

/* ===== FAQ ===== */
.faq-item {
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.faq-item.open { 
  border-color: #dce6ff; 
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  color: #1e293b;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.faq-btn:hover { color: #1a56ff; }
.faq-icon {
  font-size: 1.5rem;
  color: #1a56ff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-weight: 300;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p { color: #475569; font-size: 0.95rem; line-height: 1.7; }

/* ===== FORM ===== */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus {
  border-color: #1a56ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26,86,255,0.15);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== SELECTION ===== */
::selection { background: rgba(26,86,255,0.2); color: #0f172a; }

/* ===== NAV DROPDOWN ===== */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(26,86,255,0.05);
  padding: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}
.dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 0.625rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
}
.dropdown-item:hover {
  background: rgba(26, 86, 255, 0.07);
  color: #1a56ff;
}

/* ===== MOBILE SUBMENU ===== */
.mobile-submenu-closed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-submenu-open {
  max-height: 360px;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-submenu-item {
  display: block;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0 0.45rem 1rem;
  margin-left: 0.5rem;
  border-left: 2px solid rgba(26, 86, 255, 0.2);
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.mobile-submenu-item:hover {
  color: #1a56ff;
  border-left-color: #1a56ff;
}
.mobile-submenu-item + .mobile-submenu-item {
  margin-top: 0.15rem;
}

/* ===== FLOATING CTA ANIMATION ===== */
#floating-cta {
  will-change: transform, opacity;
  opacity: 0;
  transform: translateX(28px) scale(0.75);
  pointer-events: none;
}

@keyframes floatingCtaShow {
  0%   { opacity: 0;   transform: translateX(28px) scale(0.75); }
  55%  { opacity: 1;   transform: translateX(-6px) scale(1.07); }
  75%  { opacity: 1;   transform: translateX(3px)  scale(0.97); }
  100% { opacity: 1;   transform: translateX(0)    scale(1); }
}

@keyframes floatingCtaHide {
  0%   { opacity: 1;   transform: translateX(0)    scale(1); }
  100% { opacity: 0;   transform: translateX(28px) scale(0.75); }
}

#floating-cta.cta-visible {
  animation: floatingCtaShow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
}

#floating-cta.cta-hidden {
  animation: floatingCtaHide 0.28s ease-in forwards;
  pointer-events: none;
}

/* ===== MOBILNI FIX — BLOB ANIMACIJE =====
   Samo smanjujemo blur na mobilnom — @keyframes se ne mijenjaju
   jer ne rade ispravno unutar @media na svim browserima.
   GPU fix (translateZ + will-change) je na .bg-shape klasi gore.
   ========================================== */
@media (max-width: 768px) {
  .shape-brand-1 { filter: blur(40px); }
  .shape-brand-2 { filter: blur(45px); }
  .shape-brand-3 { filter: blur(38px); }
  .shape-brand-4 { filter: blur(44px); }
  .shape-brand-5 { filter: blur(50px); }
  .shape-brand-6 { filter: blur(40px); }
  .shape-brand-7 { filter: blur(48px); }
  .shape-brand-8 { filter: blur(44px); }
}


/* ===== BOOKING UPITNIK — Sadržaji checkbox kartice ===== */
.sadrzaj-check { cursor: pointer; display: block; height: 100%; }
.sadrzaj-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  color: #475569;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
}
.sadrzaj-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.sadrzaj-svg  { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: inherit; transform: translateY(-1px); }
@media (hover: hover) {
  .sadrzaj-check:hover .sadrzaj-inner {
    border-color: rgba(26, 86, 255, 0.3);
    background: rgba(26, 86, 255, 0.05);
  }
}
.sadrzaj-check input:checked ~ .sadrzaj-inner {
  border-color: #1a56ff;
  background: rgba(26, 86, 255, 0.08);
  color: #1a56ff;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.1);
}

/* ===== BOOKING UPITNIK — Radio dugmad ===== */
.radio-opt { cursor: pointer; }
.radio-inner {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
@media (hover: hover) {
  .radio-opt:hover .radio-inner { border-color: rgba(26, 86, 255, 0.4); color: #1a56ff; }
}
.radio-opt input:checked ~ .radio-inner,
.radio-inner.radio-checked {
  border-color: #1a56ff;
  background: rgba(26, 86, 255, 0.08);
  color: #1a56ff;
  font-weight: 600;
}

/* ===== DIRECT CONTACT CARDS ===== */
.direct-contact-card {
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.direct-contact-card:active {
  transform: scale(0.95) !important;
  transition-duration: 0.05s !important;
}

@media (hover: hover) {
  #direct-phone:hover { border-color: rgba(26, 86, 255, 0.3); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); transform: translateY(-4px); }
  #direct-phone:hover .card-text { color: #1a56ff; }
  
  #direct-email:hover { border-color: rgba(124, 58, 237, 0.3); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); transform: translateY(-4px); }
  #direct-email:hover .card-text { color: #7c3aed; }

  #direct-instagram:hover { border-color: rgba(219, 39, 119, 0.3); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); transform: translateY(-4px); }
  #direct-instagram:hover .card-text { color: #ec4899; }

  #direct-facebook:hover { border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); transform: translateY(-4px); }
  #direct-facebook:hover .card-text { color: #3b82f6; }
}
