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

:root {
  --bg-dark: #1d194f;
  --bg-soft: #272266;
  --white: #f7fafe;
  --text-light: #f5f8fc;
  --text-dark: #26226B;
  --muted-light: #b9c4d2;
  --muted-dark: #525a64;
  --accent: #4642C2;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: rgba(38,34,107,0.08);
  --max-width: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(70,66,194,0.12), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(70,66,194,0.08), transparent 28%);
  animation: drift 18s ease-in-out infinite alternate;
  z-index: -2;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-3%, -2%, 0) scale(1.04); }
}

.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* --- NAVBAR --- */


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(29, 25, 79, 0.78); /* Blago transparentna tamna pozadina */
  backdrop-filter: blur(14px);         /* Efekat zamućenja sadržaja ispod headera */
  -webkit-backdrop-filter: blur(14px); /* Podrška za Safari pregledač */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  max-width: 260px;
  width: 100%;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  text-decoration: none;
  color: var(--muted-light);
  font-size: 0.96rem;
  transition: 0.25s ease;
  font-weight: 400;
}

nav a:hover, nav a.active { color: white; }

.nav-cta {
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(70, 66, 194, 0.2);
  transition: 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(70,66,194,0.32);
}

/* DROPDOWN MENU */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  color: var(--muted-light);
  font-size: 0.96rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.25s ease;
}

.dropdown-btn:hover { color: white; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-soft);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,0.08);
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
  color: var(--muted-light);
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: 0.2s;
  cursor: pointer;
}

.dropdown-content a:hover {
  background-color: var(--accent);
  color: white;
}

/* MOBILE NAV */
.mobile-menu-toggle, .mobile-nav { display: none; }

/* --- HERO --- */
.hero {
  padding: 150px 0 130px;
  position: relative;
  padding-top: 220px;
}

.hero-home {
  background-image: url('../images/bg_image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 25, 79, 0.40);
  z-index: 0;
}

.hero-inner {
  max-width: 1240px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted-light);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 34px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 34px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted-light);
  font-weight: 300;
  max-width: 780px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
  padding: 16px 24px;
  border-radius: 14px;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  background: var(--accent);
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(70,66,194,0.18);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(70,66,194,0.28);
}

.secondary-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
}

.secondary-btn:hover {
  transform: translateY(-2px);
}

/* --- LIGHT SECTIONS --- */
.section-light {
  background: var(--white);
  color: var(--text-dark);
}

.section-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(70,66,194,0.06), transparent 22%);
  pointer-events: none;
}

.section-header {
  max-width: 760px;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

.section-label {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 24px;
}

.section-header p {
  color: var(--muted-dark);
  font-size: 1.05rem;
  font-weight: 400;
}


/* --- GRID & CARDS (HOME) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.grid-3 .card {
  min-width: 0;
  width: 100%;
  background: white;
  border-radius: 28px;
  border: 1px solid rgba(38,34,107,0.06);
  padding: 38px;
  box-shadow: 0 10px 30px rgba(38,34,107,0.04);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(38,34,107,0.08);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.card h3 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 0 0 0 5px;
}

.card p {
  color: var(--accent);
  font-weight: 600;
  margin: 10px 0;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.text-link-light {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}


/* --- WHAT WE DO --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.services-card {
  padding: 40px;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  height: 100%;
}

.services-card:hover { transform: translateY(-6px); }

.services-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0;
}

.services-card p {
  color: var(--muted-light);
  font-weight: 300;
  margin: 20px 0 25px;
}

.services-card .secondary-btn {
  align-self: end;
  justify-self: start;
}


.what-we-do-label,
.what-we-do-link {
  color: #908cf5;
}

.section-header p.what-we-do-text {
  color: var(--muted-light);
}


/* --- ABOUT / PROFILE BANNER --- */
.about-section { padding-bottom: 60px; }

.profile-banner {
  background: var(--bg-dark);
  color: white;
  margin: 40px 0 60px 0;
  position: relative;
}

.profile-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 140px;
  position: relative;
}

.profile-info { padding: 30px 0; }

.profile-info h2 {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0px;
  letter-spacing: -0.02em;
}

.profile-info p {
  color: var(--muted-light);
  font-size: 1.25rem;
  font-weight: 300;
}

.profile-avatar {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: #e0e0e0;
  z-index: 10;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

.timeline-waves {
  width: 100%;
  height: 180px;
  display: block;
  overflow: visible;
}


/* WAVES */

.wave-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.wave-1 {
  stroke: #363297;
}

.wave-2 {
  stroke: #908cf5;
}

.point-line {
  stroke: #4642c2;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.point-circle {
  fill: #5752ed;
}

.point-outline {
  fill: none;
  stroke: #908cf5;
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.point-top {
  fill: #363297;
}

.point-top-outline {
  fill: none;
  stroke: #908cf5;
  stroke-width: 1.2;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.about-timeline {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 650px;
  margin: 0 auto;
}

.timeline-waves {
  position: absolute;
  width: 100%;
  max-width: 1200px;
  height: auto;

  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);

  display: block;
  overflow: visible;
}


/* TEXT */

.about-text {
  position: absolute;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-text p {
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--muted-dark);
  font-weight: 300;
  margin: 0;
}

.about-text-1 {
  width: 30%;
  left: 11.7%;
  top: 40px;
}

.about-text-2 {
  width: 31%;
  left: 32%;
  top: 225px;
}

.about-text-3 {
  width: 27%;
  left: 74%;
  top: 125px;
  transform: translateX(-10%);
}

.about-text-1{
  transform: translateX(-70px);
}

.about-text-3 {
  transform: translateX(-70px);
}

.about-text-2 {
  transform: translateX(70px);
}
.about-text.is-visible {
  opacity: 1;
  transform: translateX(0);
}



.about-mobile-timeline {
  display: none;
}
/* --- KRAJ ABOUT US --- */


/* --- CTA BOX --- */
.cta-box {
  padding: 60px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(70,66,194,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(70,66,194,0.14);
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 24px;
}

.cta-box p {
  color: var(--muted-light);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 300;
}

/* --- SERVICES PAGE SPECIFIC STYLES --- */
.roadmap-section { 
  padding: 100px 0; 
  background: var(--white); 
  color: var(--text-dark); 
  overflow: hidden; 
}

.roadmap-section h2 {
  color: var(--text-dark); 
  font-size: 2.2rem; 
  font-weight: 600; 
  margin-bottom: 50px;
}

.roadmap-container { 
  max-width: 1100px; 
  margin: 0 auto; 
  position: relative; 
  padding: 20px 0; 
}

.progress-line {
  position: absolute; 
  left: 50%; 
  top: 0; 
  width: 4px;
  background: #e2e8f0; 
  transform: translateX(-50%);
  z-index: 1;
}

.progress-fill {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 0%;
  background: var(--accent); 
  transition: height 0.1s linear;
}

.roadmap-item { 
  display: flex; 
  align-items: center; 
  margin-bottom: 90px; 
  position: relative; 
  z-index: 2; 
  width: 100%;
}

.roadmap-item:last-child { margin-bottom: 0; }

.line-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.line-dot.active {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.roadmap-item:nth-child(odd) {
  flex-direction: row;
  padding-left: 53%;
  gap: 25px;
}

.roadmap-item:nth-child(odd) .roadmap-content {
  text-align: right;
  margin: 0;
}

.roadmap-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-right: 53%;
  gap: 25px;
}

.roadmap-item:nth-child(even) .roadmap-content {
  text-align: left;
  margin: 0;
}

.roadmap-content {
  width: 360px;
}

.roadmap-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.roadmap-content p {
  font-size: 0.95rem;
  color: var(--muted-dark);
  font-weight: 400;
}

.roadmap-marker {
  width: 50px; 
  height: 50px;
  min-width: 50px;
  background: #e2e8f0; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #ffffff; 
  font-weight: 600; 
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(70, 66, 194, 0);
}

.roadmap-marker.active { 
  background: var(--accent); 
  box-shadow: 0 0 20px rgba(70, 66, 194, 0.45); 
}

/* ACCORDION LOGIKA */
.core-capabilities-section {
  padding: 100px 0;
}

.section-title-dark h2 {
  color: var(--text-light);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 50px; 
}

.stack-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 0;
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15,23,35,0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card-header {
  min-height: 90px;
  background: #fcfdfe;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.card-header:hover { background: #f4f6fa; }

.card-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.card-header h3 {
  color: var(--text-dark); 
  font-size: 1.4rem; 
  font-weight: 600;
}

.toggle-icon {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
  transform: rotate(90deg);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
  line-height: 1;
}

.service-card.active .toggle-icon {
  transform: rotate(-90deg);
}

.card-expandable-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-in-out;
}

.service-card.active .card-expandable-content {
  opacity: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px 40px 0;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.tags span { display: flex; align-items: center; }
.tags span::after { content: "•"; margin-left: 15px; color: var(--accent); }
.tags span:last-child::after { content: ""; }

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 20px auto;
}

.card-content { padding: 10px 40px 40px; }

.card-content p.lead {
  color: var(--muted-dark);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 30px;
  max-width: none;
  width: 100%;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}

.capability-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15,23,35,0.06);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15,23,35,0.03);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.capability-card .text-link {
  margin-top: auto;
  padding-top: 10px;
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(15,23,35,0.06);
}

.capability-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

/* CAROUSEL */

.cs-carousel-section {
  padding: 100px 0;
  background: var(--white);
  color: var(--text-dark);
  overflow: hidden;
}

.cs-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}


/* HEADER */

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.carousel-header h2 {
  color: var(--text-dark);
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
}


/* CONTROLS */

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-controls.hidden {
  display: none;
}

.carousel-controls button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background: var(--accent);
  color: white;

  cursor: pointer;

  font-size: 1.2rem;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.carousel-controls button:hover:not(:disabled) {
  opacity: 0.82;
  transform: translateY(-2px);
}

.carousel-controls button:disabled {
  opacity: 0.3;
  cursor: default;
}


/* VIEWPORT */
.carousel-track-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}


/* TRACK */
.carousel-track {
  display: flex;
  gap: 30px;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  align-items: stretch;
}


/* -----------------------------------------
   CARD
   Default = 3 cards per row
   ----------------------------------------- */

.cs-card {
  flex: 0 0 calc(
    (100% - 60px) / 3
  );

  min-width: 0;

  background: #fcfdfe;

  border: 1px solid rgba(15,23,35,0.08);

  padding: 30px;

  border-radius: 20px;

  display: flex;
  flex-direction: column;
  height: auto;
}


/* ONE */

.carousel-track.cards-1 {
  justify-content: flex-start;
}

.carousel-track.cards-1 .cs-card {
  flex-basis: 100%;
}


/* TWO */

.carousel-track.cards-2 .cs-card {
  flex-basis:
    calc((100% - 30px) / 2);
}


/* THREE */

.carousel-track.cards-3 .cs-card {
  flex-basis:
    calc((100% - 60px) / 3);
}


/* FOUR OR MORE */

.carousel-track.cards-carousel .cs-card {
  flex-basis:
    calc((100% - 60px) / 3);
}


/* CONTENT */

.cs-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #4642C2;
  margin-bottom: 15px;
}

.cs-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.cs-card p {
  font-size: 0.95rem;
  color: var(--muted-dark);
  margin-bottom: 20px;
}

.cs-link {
  color: #4642C2;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 20px;
}


.integration-wrapper { padding: 120px 0; }

.integration-box {
  padding: 60px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(70, 66, 194, 0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(70, 66, 194, 0.14);
  text-align: center;
}

.integration-box h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 24px;
}

.integration-box p {
  color: var(--muted-light);
  max-width: 820px;
  margin: 0 auto;
  font-weight: 300;
}

.cta-section { text-align: center; margin-top: 40px; }

.cta-section h2 {
  font-size: clamp(1.5rem, 2vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 auto 28px;
}

/* FOOTER */
footer {
  padding: 46px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  color: var(--muted-light);
  font-style: italic;
  font-weight: 300;
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-hero {
  padding-bottom: 0px;
}

.contact-container {
  display: flex;
  justify-content: center;
}

.contact-content-section {
  padding-top:  50px;
}

.unified-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 50px;
  backdrop-filter: blur(10px);
  max-width: 820px;
  width: 100%;
}

.unified-card h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.1;
}

.unified-card > p {
  color: var(--muted-light);
  font-weight: 300;
  margin-bottom: 30px; 
  max-width: 90%;
}

.email-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

.main-email {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  word-break: break-all;
}

.main-email:hover {
  color: var(--accent);
}

.card-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 50px 0;
}

.info-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-meta h3 {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 8px;
}

.info-meta p {
  font-size: 0.95rem;
  color: var(--muted-light);
  font-weight: 300;
  line-height: 1.5;
}


/* =========================================
   ENGAGEMENT MODELS PAGE STYLES
   ========================================= */

/* Section Light background */
.section-light {
  background: var(--white);
  color: var(--text-dark);
  position: relative;
}

.section-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(70, 66, 194, 0.06), transparent 22%);
  pointer-events: none;
}

/* Ad-Hoc & Retainer Card */
.ad-hoc-subscription-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 10px 40px rgba(15, 23, 35, 0.05);
  border: 1px solid rgba(15, 23, 35, 0.06);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  margin-bottom: 70px;
}

.adhoc-col {
  display: flex;
  flex-direction: column;
}

.adhoc-col h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-bottom: 28px;
}

.adhoc-col ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 36px;
}

.adhoc-col ul li {
  color: var(--muted-dark);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.adhoc-footer {
  margin-top: auto;
}

.adhoc-divider-line {
  width: 140px;
  height: 2px;
  background-color: rgba(70, 66, 194, 0.25);
  margin-bottom: 20px;
}

.adhoc-ideal-for {
  font-size: 0.95rem;
  color: var(--muted-dark);
  line-height: 1.6;
}

.adhoc-ideal-for strong {
  color: var(--text-dark);
  font-weight: 600;
}

.adhoc-vertical-divider {
  background-color: var(--accent);
  width: 2px;
  height: 100%;
}

/* Middle Connector */
.models-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 70px;
  text-align: center;
}

.connector-line-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 200px;
}

.connector-line {
  height: 2px;
  background-color: var(--accent);
  flex: 1;
}

.connector-dot {
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.connector-text {
  max-width: 580px;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 400;
}

/* Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 35px;
  position: relative;
  z-index: 2;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 60px 42px 42px;
  box-shadow: 0 10px 30px rgba(15, 23, 35, 0.04);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(15, 23, 35, 0.08);
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(15, 23, 35, 0.06);
  z-index: 10;
}

.circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pricing-card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 8px;
  color: var(--text-dark);
  text-align: center;
  text-transform: uppercase;
}

.pricing-tag {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 25px;
}

.pricing-card ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.pricing-card ul li {
  color: var(--muted-dark);
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.card-footer {
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  position: relative;
  padding-top: 24px;
  margin-top: auto;
}

.card-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent);
}

.info {
  text-align: center;
}

.info h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem); 
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 820px;
  margin: 0 auto 26px;
  color: var(--text-light);
}

.info p {
  color: var(--muted-light);
  font-weight: 300;
  font-size: 1rem;
  max-width: 820px; 
  margin: 0 auto;
}


/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {
  .navbar { height: 84px; }
  nav, .nav-cta { display: none; }
  .dropdown { width: 100%; }
  
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 16px;
    border: none;
  }

  .dropdown:hover .dropdown-content { display: block; }

  .mobile-menu-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }

  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: white;
    transition: 0.25s ease;
  }

  .mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    position: fixed;
    top: 96px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(29,25,79,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: 0.25s ease;
    pointer-events: none;
    z-index: 1001;
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav > a, .mobile-download-toggle {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    color: var(--muted-light);
    background: transparent;
    text-decoration: none;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 400;
    text-align: left;
    border: 0;
    cursor: pointer;
  }

  .mobile-nav > a:hover, .mobile-download-toggle:hover {
    color: white;
    background: rgba(255,255,255,0.06);
  }

  .mobile-download-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-download-menu { display: none; padding: 0 8px 8px 18px; }
  .mobile-download.open .mobile-download-menu { display: block; }

  .mobile-download-menu a {
    display: block;
    padding: 11px 12px;
    color: var(--muted-light);
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 1px solid rgba(255,255,255,0.12);
  }

  .mobile-download-menu a:hover { color: white; }

  .mobile-nav-cta {
    margin-top: 8px;
    text-align: center !important;
    background: var(--accent) !important;
    color: white !important;
    font-weight: 500 !important;
  }
  }
  @media (max-width: 980px) {

  section { padding: 90px 0; }
  .hero { padding: 120px 0 100px; }
  .hero h1 { max-width: 100%; }
  .capability-grid { grid-template-columns: minmax(0, 1fr); }

  .pricing-grid {
    grid-template-columns:  minmax(0, 1fr);
    gap: 50px;
  }

  .carousel-track.cards-3 .cs-card,
  .carousel-track.cards-carousel .cs-card {
    flex-basis:
      calc((100% - 30px) / 2);
  }

  /* WHY TRANSANALITICA */
   .grid-3 {
    grid-template-columns: 1fr;
  }

  /* WHAT WE DO */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-card {
    display: flex;
    flex-direction: column;
  }

  .services-card .secondary-btn {
    margin-top: auto;
  }

  /* ABOUT US*/

  .about-text,
  .timeline-waves {
    display: none;
  }

  .about-timeline {
    height: auto;
  }

  .about-mobile-timeline {
    --timeline-x: 53px;

    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    padding: 30px 20px 30px 105px;
    gap: 55px;
  }

  .mobile-timeline-lines {
    position: absolute;

    left: var(--timeline-x);
    top: 46px;
    bottom: 0;

    width: 8px;

    border-left: 2px solid #363297;
    border-right: 2px solid #908cf5;

    transform: translateX(-50%);
  }


  .mobile-about-item {
    position: relative;
    width: 100%;
  }


  .mobile-timeline-dot {
    position: absolute;

    left: calc(var(--timeline-x) - 105px);
    top: 2px;

    width: 28px;
    height: 28px;

    border-radius: 50%;
    background: #5752ed;

    transform: translateX(-50%);

    z-index: 2;
  }

  .mobile-timeline-dot::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 40px;
    height: 40px;

    transform: translate(-50%, -50%);

    border: 2px dotted #908cf5;
    border-radius: 50%;

    background: transparent;
  }


  /* TEXT */

  .mobile-about-item p {
    margin: 0;

    color: var(--muted-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    
  }
}

/* KRAJ MEDIA 980px */

@media (max-width: 850px) {
  .unified-card { 
    padding: 36px; 
  }
  
  .info-meta { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }

  .ad-hoc-subscription-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 24px;
  }

  .adhoc-vertical-divider {
    width: 100%;
    height: 1px;
  }

  .connector-line-wrap {
    display: none;
  }
}

/* ---- MEDIA 767px ------------*/

@media (max-width: 767px) {
  .wrapper { padding: 0 20px; }
  .grid-3, .pricing-grid 
  { 
    grid-template-columns: 1fr; 
  }
  
  .logo img { max-width: 190px; }
  .hero { padding: 115px 0 80px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .card, .pricing-card, .cta-box { padding: 30px; }

  /* WHAT WE DO */

  .services-card {
    display: flex;
    flex-direction: column;
  }

  .services-card .secondary-btn {
    margin-top: auto;
  }


  /* CORE CAPABILITIES - MOBILE */

  .service-card {
    overflow: hidden;
    width: 100%;
    min-width: 0;
  }

  .card-header {
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
  }

  .card-header-left {
    min-width: 0;
  }

  .card-header h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .card-expandable-content {
    width: 100%;
    min-width: 0;
  }

  .service-card.active .card-expandable-content {
    max-height: none;
    overflow: visible;
  }

  .card-content {
    width: 100%;
    min-width: 0;
    padding: 10px 20px 30px;
  }

  .capability-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 16px;
  }

  .capability-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    padding: 22px 20px;
  }

  .capability-card h4,
  .capability-card p,
  .capability-card a {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

    /* Roadmap mobile */
    .progress-line { left: 20px; }
    .line-dot { left: 20px; }
    
    .roadmap-item:nth-child(odd), .roadmap-item:nth-child(even) {
      flex-direction: row;
      padding-left: 105px;
      padding-right: 0;
    }

  .roadmap-item:nth-child(even) .roadmap-content {
    text-align: left;
    margin-left: 0;
    margin-right: 15px;
  }
  
  .roadmap-item:nth-child(odd) .roadmap-content { margin-right: 15px; }

  .card-header { padding: 20px; }
  .card-content { padding: 10px 20px 30px; }
  .tags { padding: 15px 20px 0; }

  .roadmap-marker {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  /* tekst */
  .roadmap-content {
    width: 100%;
    min-width: 0;
  }

  .roadmap-item:nth-child(odd) .roadmap-content,
  .roadmap-item:nth-child(even) .roadmap-content {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  /* FEATURED CASE STUDIES - MOBILE */

  .carousel-track {
    gap: 0;
  }

  .cs-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }


  /* About profile banner mobile */
  .profile-banner { 
    margin: 20px 0 45px; 
  }

  .profile-banner-inner { 
    min-height: 50px; 
    justify-content: 
    flex-start; 
  }

  .profile-info {
    padding: 28px 0;
    max-width: 48%;
    position: relative;
    z-index: 2;
  }

  .profile-info h2 { font-size: 1.65rem; }
  .profile-info p { font-size: 0.9rem; }

  .profile-avatar {
    width: 205px;
    height: 205px;
    right: 20px;
    border-width: 3px;
  }

  /* About timeline mobile */
  .bio-timeline { display: none; }

  .mobile-bio-timeline {
    display: block;
    position: relative;
    height: auto;
    margin: 5px 0 0;
    padding: 0 0 30px 0;
    overflow: hidden;
  }

  .mobile-timeline-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 100%;
    min-height: 1100px;
    z-index: 0;
    pointer-events: none;
  }

  .mobile-wave { fill: none; stroke-width: 2; }
  .mobile-wave-1 { stroke: rgba(70,66,194,0.38); }
  .mobile-wave-2 { stroke: rgba(70,66,194,0.68); }

  .mobile-bio-item {
    position: relative;
    z-index: 2;
    min-height: 350px;
    padding-left: 52px;
    display: flex;
    align-items: flex-start;
  }

  .mobile-bio-item-1 { padding-top: 25px; }
  .mobile-bio-item-2 { padding-top: 40px; }
  .mobile-bio-item-3 { padding-top: 42px; min-height: 375px; }

  .mobile-bio-dot {
    position: absolute;
    left: 11px;
    top: 31px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(70,66,194,0.08);
  }

  .mobile-bio-item-2 .mobile-bio-dot { top: 47px; left: 32px; }
  .mobile-bio-item-3 .mobile-bio-dot { top: 49px; left: 11px; }

  .mobile-bio-content { width: min(100%, 520px); padding-right: 5px; }

  .mobile-bio-connector {
    width: 58px;
    height: 2px;
    background: var(--accent);
    margin: 9px 0 13px;
  }

  .mobile-bio-content p {
    color: var(--muted-dark);
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 300;
    margin: 0;
  }

  /* Engagement models */
  .pricing-card {
    padding: 60px 30px 30px;
  }

  section,
  .roadmap-section,
  .core-capabilities-section,
  .cs-carousel-section,
  .integration-wrapper,
  .about-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

   .stack-container {
    gap: 14px;
  }

  .toggle-icon {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    margin-left: 14px;
    font-size: 0;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }

  .service-card.active .toggle-icon {
    transform: rotate(-135deg);
  }

}


@media (max-width: 600px) {

  .carousel-header {
    align-items: flex-start;
  }

  .carousel-header h2 {
    font-size: 1.85rem;
  }


  .carousel-track .cs-card {
    flex-basis: 100%;
  }

  .carousel-controls button {
    width: 44px;
    height: 44px;
  }

  .carousel-controls.hidden {
  display: none;
}

}

@media (max-width: 420px) {

  /* Contact: reduce the gap between page title and contact card */
  .contact-hero {
    padding-top: 125px;
    padding-bottom: 34px;
  }

  /* Contact card: use available width more efficiently */
  .unified-card {
    padding: 28px 22px;
  }

  .email-box {
    padding: 16px;
  }

  .main-email {
    font-size: 1rem;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    letter-spacing: -0.015em;
  }

  /* Footer tagline stays on one line on narrow phones */
  .footer-inner p {
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  /* Home: pull Vinko's photo safely inside the viewport */
  .profile-avatar {
    width: 180px;
    height: 180px;
    right: 10px;
  }

  .profile-info { 
    max-width: 52%; 
  }
  
  .mobile-bio-item { 
    padding-left: 48px; 
  }

  .mobile-bio-content p {
    font-size: 0.81rem; 
  }
}


