/* ===========================
   S2B d.o.o. — Custom Styles
   =========================== */

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== Gradient text ===== */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #2176ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #060e1f 0%, #0a1628 50%, #0d1f3c 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-orb-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 118, 255, 0.13) 0%, transparent 70%);
  animation: drift1 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  animation: drift2 16s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -40px) scale(1.06); }
  66%       { transform: translate(-25px, 25px) scale(0.94); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(50px, -50px) scale(1.1); }
}

/* ===== Dashboard Mockup ===== */
.dashboard-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 28px;
  animation: floatCard 7s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 30px 60px rgba(0,0,0,0.4),
    0 0 80px rgba(33,118,255,0.08);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(0.5deg); }
}

/* ===== Navbar ===== */
#navbar {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

#navbar.scrolled {
  background: rgba(8, 18, 38, 0.97) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255,255,255,0.08);
}
.nav-link.active {
  color: #ffffff;
  background-color: rgba(33, 118, 255, 0.2);
}

/* ===== Page Hero (sub-pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #122040 60%, #1a3355 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 55%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(33, 118, 255, 0.1) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ===== Module Cards ===== */
.module-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.module-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(33, 118, 255, 0.1);
  border-color: #2176ff;
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2176ff;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  margin-bottom: 18px;
}
.module-card:hover .module-icon {
  background: linear-gradient(135deg, #2176ff, #1560e0);
  color: #ffffff;
  transform: scale(1.1);
}

/* ===== Stats ===== */
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Value cards (O nama) ===== */
.value-card {
  border-left: 3px solid #2176ff;
  padding-left: 20px;
  transition: padding-left 0.25s ease;
}
.value-card:hover { padding-left: 26px; }

/* ===== Client cards ===== */
.client-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.client-logo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  aspect-ratio: 16/10;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-placeholder {
  transform: scale(1.04);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 31, 0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.active { display: flex; }

/* ===== Form ===== */
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #1e293b;
}
.form-input:focus {
  border-color: #2176ff;
  box-shadow: 0 0 0 4px rgba(33, 118, 255, 0.1);
}
.form-input::placeholder { color: #94a3b8; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #0a1628 0%, #1a3355 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(33,118,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== Step (Podrška) ===== */
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2176ff, #1560e0);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(33,118,255,0.35);
}
.step-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  transition: box-shadow 0.3s;
}
.step-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.07); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2176ff; }

/* ===== Tag/Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-navy { background: rgba(33,118,255,0.15); color: #60a5fa; }

/* ===== Section divider ===== */
.section-divider {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2176ff, #60a5fa);
  margin: 16px 0 24px;
}

/* ===== Accounting service list ===== */
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(33,118,255,0.07);
  border-color: #93c5fd;
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #2176ff;
  flex-shrink: 0;
}
