/* Light cream surface override */
body {
  background: var(--color-bg) !important;
}
body :where(h1,h2,h3,h4,h5,h6,p,li,small,span,a) {
  color: var(--color-text-dark) !important;
}
/* O nama stranica - Koristi samo dozvoljene boje */

/* Smooth scroll koristi globalni html { scroll-behavior } iz main.css */

/* Intersection Observer animacije */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
}

/* Hero sekcija */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start; /* usklađeno s Usluge */
  padding: 100px 20px 40px; /* identično kao Usluge */
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Pomakni grafike za +80px (samo subpage) */
.brain-container,
.ai-visualization,
.team-illustration {
  margin-top: 80px;
}

/* Uskladi pozicije grafika kao na Usluge */
.services-illustration { width: 300px; height: 300px; position: relative; will-change: transform; }
.services-illustration .service-icon { --base-y: 80px; }
.service-1 { top: 20%; left: 20%; --float-x: 12px; --float-y: -18px; --float-rot: 1deg; --float-dur: 11s; }
.service-2 { top: 50%; right: 20%; transform: translateY(-50%); --float-x: -14px; --float-y: -12px; --float-rot: -1deg; --float-dur: 9s; }
.service-3 { bottom: 20%; left: 30%; --float-x: 11px; --float-y: -20px; --float-rot: 1.5deg; --float-dur: 10.5s; }

/* Floating background shapes (preuzeto s homepage) */
.hero-background { position: absolute; inset: 0; z-index: 1; }
.bg-shape { position: absolute; width: 300px; height: 300px; border-radius: 50%; opacity: 0.1; animation: float 6s ease-in-out infinite; }
.bg-orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; opacity: 0.15; filter: blur(2px); }
.orb-a { left: 18%; top: 25%; background: var(--hero-orb-1); }
.orb-b { right: 12%; bottom: 18%; background: var(--hero-orb-2); }
.bg-shape-left { background: transparent; top: 10%; left: -150px; animation-delay: 0s; }
.bg-shape-right { background: transparent; bottom: 10%; right: -150px; animation-delay: 3s; }

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-red-10);
  border: 1px solid var(--accent-red-30);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent-warm);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--color-text-dark);
}

.gradient-text {
  color: var(--color-accent-3) !important;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-dark);
  margin: 0 0 40px;
  max-width: 500px;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Team Ilustracija */
.team-illustration {
  width: 300px;
  height: 300px;
  position: relative;
  will-change: transform;
  color: var(--color-accent-3); /* global accent for graphic */
}

/* Hide old, glitchy implementation */
.team-member,
.team-illustration .connection-line { display: none !important; }

.member-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.member-2 {
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}

.member-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}

.member-avatar {
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 24px;
  font-weight: bold;
}

.member-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.9;
}

/* New minimal graphic: 3 accent nodes + soft links using pseudo-elements */
.team-illustration::before,
.team-illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* links */
.team-illustration::before {
  background:
    linear-gradient(45deg, currentColor 0 0) no-repeat,
    linear-gradient(-45deg, currentColor 0 0) no-repeat;
  background-size: 2px 160px, 2px 140px;
  background-position: 40% 30%, 60% 60%;
  opacity: .35;
}

/* nodes */
.team-illustration::after {
  background:
    radial-gradient(circle 18px at 35% 35%, currentColor 0 60%, transparent 61%),
    radial-gradient(circle 24px at 70% 32%, currentColor 0 60%, transparent 61%),
    radial-gradient(circle 28px at 55% 70%, currentColor 0 60%, transparent 61%);
}

.line-1 {
  top: 35%;
  left: 30%;
  width: 40%;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.line-2 {
  top: 60%;
  right: 30%;
  width: 40%;
  transform: rotate(-45deg);
  animation-delay: 1s;
}

.line-3 {
  bottom: 35%;
  left: 40%;
  width: 20%;
  transform: rotate(90deg);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes flow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Dugmad */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 22px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  box-shadow: 0 4px 15px var(--accent-red-30) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-red-30);
}

.btn-secondary {
  background: var(--overlay-white-10);
  color: var(--color-text);
  border: 1px solid var(--overlay-white-20);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--overlay-white-20);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Sekcije */
.mission-section,
.team-section,
.values-section,
.stats-section {
  padding: 80px 0;
}

.mission-section { background: var(--color-bg); }

.team-section { background: var(--color-bg); }

.values-section { background: var(--color-bg); }

.stats-section { background: var(--color-bg); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
}

.section-header p {
  font-size: 20px;
  color: var(--color-text);
  margin: 0;
  opacity: 0.8;
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.mission-card {
  background: var(--overlay-white-05);
  border: 1px solid var(--overlay-white-10);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red-30), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red-30);
  box-shadow: var(--shadow-lg);
}

.mission-card:hover::before {
  opacity: 1;
}

.mission-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-text);
}

.mission-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 16px;
}

.mission-card p {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  opacity: 0.8;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  position: relative;
  background: rgba(var(--pastel-teal-rgb), 0.05);
  border: 2px solid rgba(var(--pastel-teal-rgb), 0.2);
  border-radius: 24px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease-out-expo);
  text-align: center;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-3), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-3);
  box-shadow: 0 12px 32px rgba(var(--pastel-teal-rgb), 0.25);
  background: rgba(var(--pastel-teal-rgb), 0.08);
}

.team-avatar {
  margin-bottom: 24px;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(var(--pastel-teal-rgb), 0.15);
  border: 3px solid var(--color-accent-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--color-accent-3);
  transition: all 0.3s ease;
}

.team-card:hover .avatar-placeholder {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(var(--pastel-teal-rgb), 0.3);
}

.team-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.team-role {
  font-size: 15px;
  color: var(--color-accent-3);
  margin: 0 0 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.team-description {
  color: var(--color-text-dark);
  line-height: 1.7;
  margin: 0 0 24px;
  opacity: 0.85;
  font-size: 15px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.skill {
  background: rgba(var(--pastel-teal-rgb), 0.15);
  color: var(--color-accent-3);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(var(--pastel-teal-rgb), 0.3);
  transition: all 0.3s ease;
}

.skill:hover {
  background: rgba(var(--pastel-teal-rgb), 0.25);
  border-color: var(--color-accent-3);
  transform: translateY(-2px);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.value-item {
  position: relative;
  text-align: left;
  padding: 40px 32px;
  background: rgba(var(--pastel-teal-rgb), 0.05);
  border: 2px solid rgba(var(--pastel-teal-rgb), 0.2);
  border-radius: 24px;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-3), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.value-item:hover::before {
  transform: scaleX(1);
}

.value-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-3);
  box-shadow: 0 12px 32px rgba(var(--pastel-teal-rgb), 0.25);
  background: rgba(var(--pastel-teal-rgb), 0.08);
}

.value-number {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-accent-3);
  margin-bottom: 20px;
  line-height: 1;
  letter-spacing: -2px;
}

.value-item h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.value-item p {
  color: var(--color-text-dark);
  line-height: 1.7;
  margin: 0;
  opacity: 0.85;
  font-size: 15px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--overlay-white-05);
  border: 1px solid var(--overlay-white-10);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red-30);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: var(--color-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: var(--color-text);
  opacity: 0.8;
  font-weight: 500;
}

/* CTA sekcija */
.cta-section {
  background: var(--color-bg);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Svijetle sekcije (žuta) → tamni tekst */
.mission-section :where(h1,h2,h3,h4,h5,h6,p,li,small,span,a),
.team-section :where(h1,h2,h3,h4,h5,h6,p,li,small,span,a),
.cta-section :where(h1,h2,h3,h4,h5,h6,p,li,small,span,a) {
  color: var(--color-text-dark) !important;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-red-20) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
}

.cta-content p {
  font-size: 20px;
  color: var(--color-text);
  margin: 0 0 40px;
  opacity: 0.8;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Tablet Landscape */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }
  
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
  }
}

/* Tablet Portrait */
@media (max-width: 968px) {
  .hero-section {
    padding: 80px 20px 40px;
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }
  
  .hero-title {
    font-size: clamp(42px, 7vw, 64px);
  }
  
  .hero-description {
    font-size: clamp(18px, 2.2vw, 20px);
    max-width: 100%;
    margin: 0 auto 36px;
  }
  
  .hero-visual {
    margin-top: 40px;
    width: 100%;
  }
  
  .team-illustration {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .mission-section,
  .team-section,
  .values-section,
  .stats-section {
    padding: 70px 20px;
  }
  
  .section-header {
    margin-bottom: 48px;
  }
  
  .section-header h2 {
    font-size: clamp(32px, 5vw, 44px);
  }
  
  .section-header p {
    font-size: clamp(17px, 2vw, 19px);
  }
  
  .mission-grid {
    gap: 24px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile Landscape & Large Phones */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-section {
    padding: 70px 16px 40px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: clamp(17px, 2vw, 19px);
    margin-bottom: 32px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 400px;
  }
  
  .hero-visual {
    margin-top: 32px;
  }
  
  .team-illustration {
    width: 240px;
    height: 240px;
  }
  
  .mission-section,
  .team-section,
  .values-section,
  .stats-section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: clamp(32px, 5vw, 44px);
  }
  
  .section-header p {
    font-size: clamp(17px, 2vw, 19px);
  }
  
  .mission-card {
    padding: 32px 24px;
  }
  
  .mission-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
  }
  
  .mission-card h3 {
    font-size: clamp(20px, 2.6vw, 24px);
  }
  
  .mission-card p {
    font-size: clamp(15px, 1.9vw, 16px);
  }
  
  .team-grid {
    gap: 20px;
  }
  
  .team-card {
    padding: 32px 24px;
  }
  
  .avatar-placeholder {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }
  
  .team-card h3 {
    font-size: clamp(20px, 2.6vw, 24px);
  }
  
  .team-role {
    font-size: clamp(14px, 1.9vw, 15px);
  }
  
  .team-description {
    font-size: clamp(14px, 1.8vw, 15px);
  }
  
  .skill {
    padding: 5px 12px;
    font-size: clamp(12px, 1.6vw, 13px);
  }
  
  .values-grid {
    gap: 20px;
  }
  
  .value-item {
    padding: 32px 24px;
  }
  
  .value-number {
    font-size: clamp(48px, 6.5vw, 56px);
  }
  
  .value-item h3 {
    font-size: clamp(20px, 2.6vw, 24px);
  }
  
  .value-item p {
    font-size: clamp(14px, 1.8vw, 15px);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-item {
    padding: 28px 20px;
  }
  
  .stat-number {
    font-size: clamp(40px, 5.5vw, 48px);
  }
  
  .stat-label {
    font-size: clamp(15px, 2vw, 16px);
  }
  
  .cta-section {
    padding: 60px 16px;
  }
  
  .cta-content h2 {
    font-size: clamp(32px, 4.5vw, 44px);
  }
  
  .cta-content p {
    font-size: clamp(17px, 2vw, 19px);
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 400px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .hero-section {
    padding: 60px 12px 32px;
  }
  
  .hero-title {
    font-size: clamp(32px, 5vw, 48px);
  }
  
  .hero-description {
    font-size: clamp(16px, 1.9vw, 18px);
  }
  
  .hero-actions .btn {
    max-width: 100%;
  }
  
  .team-illustration {
    width: 200px;
    height: 200px;
  }
  
  .mission-section,
  .team-section,
  .values-section,
  .stats-section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  .section-header h2 {
    font-size: clamp(28px, 4.5vw, 40px);
  }
  
  .mission-card,
  .team-card {
    padding: 24px 20px;
  }
  
  .mission-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  
  .mission-card h3,
  .team-card h3 {
    font-size: clamp(18px, 2.4vw, 22px);
  }
  
  .avatar-placeholder {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }
  
  .value-item {
    padding: 24px 20px;
  }
  
  .value-number {
    font-size: clamp(44px, 6vw, 52px);
  }
  
  .value-item h3 {
    font-size: clamp(18px, 2.4vw, 22px);
  }
  
  .stat-item {
    padding: 24px 18px;
  }
  
  .stat-number {
    font-size: clamp(36px, 5vw, 44px);
  }
  
  .stats-grid {
    gap: 18px;
  }
  
  .cta-section {
    padding: 50px 12px;
  }
  
  .cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
  }
  
  .cta-actions .btn {
    max-width: 100%;
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  .hero-section {
    padding: 50px 10px 28px;
  }
  
  .mission-card,
  .team-card,
  .value-item {
    padding: 20px 16px;
  }
  
  .avatar-placeholder {
    width: 70px;
    height: 70px;
  }
  
  .stat-item {
    padding: 20px 16px;
  }
  
  .cta-section {
    padding: 40px 10px;
  }
}
