/* TIM POWER PLUS d.o.o. — Shared Styles */

:root {
  --brand-blue: #6c7edb;
  --brand-blue-dark: #4a5bb5;
  --brand-blue-light: #8ba0e8;
  --brand-teal: #2dd4bf;
  --brand-teal-dark: #14b8a6;
  --brand-white: #ffffff;
  --brand-black: #0f172a;
  --brand-gray: #64748b;
  --brand-gray-light: #f1f5f9;
  --brand-gray-border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: all 0.25s ease;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--brand-black);
  background: var(--brand-white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Notification bar */
.notification-bar {
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--brand-white);
  padding: 0.625rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.notification-bar strong {
  color: var(--brand-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notification-bar .divider {
  opacity: 0.5;
  margin: 0 0.5rem;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-gray-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-blue);
}

.logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--brand-black);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand-teal);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--brand-blue);
  color: var(--brand-white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--brand-blue-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-blue);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 26, 79, 0.7) 0%, rgba(52, 74, 175, 0.6) 50%, rgba(90, 114, 201, 0.5) 100%),
    url('../hero-banner.jpg?v=2') center / cover no-repeat;
  color: var(--brand-white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(139, 160, 232, 0.15) 0%, transparent 50%);
  backdrop-filter: blur(1.5px);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: heroFloat 10s ease-in-out infinite;
  z-index: 0;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: var(--brand-teal);
  animation-delay: 0s;
}

.hero-glow-2 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: 10%;
  background: var(--brand-blue-light);
  animation-delay: -5s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.08); }
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.65;
  animation: networkDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.network-lines line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 12 8;
  animation: dashFlow 3s linear infinite;
}

.network-nodes circle {
  fill: url(#nodeGrad);
  animation: nodePulse 2.5s ease-in-out infinite;
}

.network-nodes circle:nth-child(2) { animation-delay: 0.2s; }
.network-nodes circle:nth-child(3) { animation-delay: 0.4s; }
.network-nodes circle:nth-child(4) { animation-delay: 0.6s; }
.network-nodes circle:nth-child(5) { animation-delay: 0.8s; }
.network-nodes circle:nth-child(6) { animation-delay: 1.0s; }
.network-nodes circle:nth-child(7) { animation-delay: 1.2s; }
.network-nodes circle:nth-child(8) { animation-delay: 1.4s; }
.network-nodes circle:nth-child(9) { animation-delay: 1.6s; }
.network-nodes circle:nth-child(10) { animation-delay: 1.8s; }

@keyframes networkDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(15px, -10px) rotate(1deg); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -40; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: particleFloat 12s linear infinite;
  bottom: -20px;
}

.hero-particles span:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; animation-duration: 14s; animation-delay: 1s; width: 11px; height: 11px; }
.hero-particles span:nth-child(3) { left: 30%; animation-duration: 11s; animation-delay: 2s; }
.hero-particles span:nth-child(4) { left: 40%; animation-duration: 16s; animation-delay: 0.5s; width: 7px; height: 7px; }
.hero-particles span:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 1.5s; width: 10px; height: 10px; }
.hero-particles span:nth-child(7) { left: 70%; animation-duration: 15s; animation-delay: 2.5s; }
.hero-particles span:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 0.8s; width: 7px; height: 7px; }
.hero-particles span:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: 3.5s; }
.hero-particles span:nth-child(10) { left: 15%; animation-duration: 11s; animation-delay: 4s; width: 11px; height: 11px; }
.hero-particles span:nth-child(11) { left: 25%; animation-duration: 13s; animation-delay: 5s; }
.hero-particles span:nth-child(12) { left: 65%; animation-duration: 10s; animation-delay: 4.5s; width: 9px; height: 9px; }
.hero-particles span:nth-child(13) { left: 75%; animation-duration: 17s; animation-delay: 2.2s; }
.hero-particles span:nth-child(14) { left: 45%; animation-duration: 12s; animation-delay: 3.2s; width: 10px; height: 10px; }
.hero-particles span:nth-child(15) { left: 85%; animation-duration: 15s; animation-delay: 1.2s; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.95; }
  92% { opacity: 0.95; }
  100% { transform: translateY(-110vh) translateX(25px); opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-content {
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(45, 212, 191, 0.15);
  color: var(--brand-teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--brand-teal);
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-white);
  color: var(--brand-blue);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--brand-teal);
  color: var(--brand-blue-dark);
}

.hero-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brand-white);
  border: 2px solid var(--brand-teal);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--brand-teal);
  color: var(--brand-blue-dark);
}

/* Section defaults */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--brand-gray-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  color: var(--brand-teal-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-text {
  color: var(--brand-gray);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--brand-gray);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--brand-white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand-teal);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--brand-gray);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--brand-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--brand-gray-border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 212, 191, 0.4);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 100%);
  color: var(--brand-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--brand-gray);
  font-size: 0.95rem;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--brand-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.why-list .check {
  width: 24px;
  height: 24px;
  background: var(--brand-teal);
  color: var(--brand-blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
}

.why-list span {
  font-weight: 500;
}

/* When to hire */
.when-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.when-card {
  background: var(--brand-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand-teal);
}

.when-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.when-card p {
  color: var(--brand-gray);
  font-size: 0.95rem;
}

/* Results page */
.results-page {
  background: var(--brand-gray-light);
  min-height: calc(100vh - 72px - 260px);
}

.results-page-header {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--brand-white);
  padding: 3rem 0;
  text-align: center;
}

.results-page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.results-page-header .date {
  opacity: 0.9;
  font-size: 1.1rem;
}

.results-count {
  text-align: center;
  padding: 1.25rem 0;
  color: var(--brand-gray);
  font-weight: 500;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}

.result-card {
  background: var(--brand-white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand-teal);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--brand-blue);
}

.result-number {
  width: 32px;
  height: 32px;
  background: var(--brand-blue);
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.result-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.result-meta {
  color: var(--brand-gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-meta.jmbg {
  font-family: 'Consolas', 'Monaco', monospace;
  letter-spacing: 0.5px;
}

/* Footer */
.site-footer {
  background: var(--brand-blue-dark);
  color: var(--brand-white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 39px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.85;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-teal);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  opacity: 0.85;
  transition: var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--brand-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-teal);
  font-weight: 600;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Utilities */
.text-center {
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--brand-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--brand-gray-border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--brand-gray-border);
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 0;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  .about-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-image,
  .why-image {
    order: -1;
  }

  .hero .container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}
