:root {
  --bg-primary: #fafafa;
  --color-primary: #0047ab;
  /* Slightly deeper, more "international" blue */
  --color-secondary: #001530;
  /* Darker navy */
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a4a;
  --divider: #e5e5e5;
  --color-primary-hover: #003380;
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-premium:
    0 30px 60px -12px rgba(50, 50, 93, 0.15),
    0 18px 36px -18px rgba(0, 0, 0, 0.2);
}

html {
  font-size: 16.5px;
}

body {
  background-color: #0a0a0b;
  font-family: "Inter", sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Initial white overlay to prevent FOUC (Flash of Unstyled Content) before JS loader runs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 99990; /* High z-index, but below the JS loader (99999) */
  display: block;
}

body.loaded::before {
  display: none;
}

#welcomeContainer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #b8d3ff 0%, #ffffff 100%);
}

#welcomeContainer .flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
  z-index: 3;
}

#welcomeContainer .content-c {
  width: 100%;
}

#welcomeContainer .image-c {
  width: 100%;
  max-width: 900px;
  margin-top: 60px;
}

#welcomeContainer .content-c .all-c {
  width: 100%;
  margin-inline: auto;
}

#welcomeContainer .image-c .all-c {
  width: 100%;
  position: relative;
  z-index: 1;
}

#welcomeContainer .image-c img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  will-change: transform, opacity;
  animation: hero-image-appear 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

#welcomeContainer h1 {
  font-family: "Lexend", sans-serif;
  font-size: clamp(3.8rem, 7vw, 7.5rem);
  color: #001530;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  opacity: 0;
  will-change: transform, opacity;
  animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#welcomeContainer h1 .text-rotator {
  display: inline-flex;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
}

#welcomeContainer h1 .text-rotator .rotator-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  animation: rotate-text 6s ease-in-out infinite;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#welcomeContainer h1 .text-rotator .rotator-item {
  background: linear-gradient(135deg, #3b82f6 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 700;
  display: block;
  line-height: 1.25;
  height: 1.25em;
}

@keyframes rotate-text {
  0%,
  24% {
    transform: translateY(0);
  }
  33%,
  57% {
    transform: translateY(-1.25em);
  }
  66%,
  90% {
    transform: translateY(-2.5em);
  }
  100% {
    transform: translateY(-3.75em);
  }
}

#welcomeContainer p {
  font-size: 1.3rem;
  max-width: 800px;
  margin-inline: auto;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
  opacity: 0;
  will-change: transform, opacity;
  animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#welcomeContainer .btn-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 0;
  opacity: 0;
  will-change: transform, opacity;
  animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

#welcomeContainer .btn-flex button {
  height: 55px;
  padding: 0 34px;
  width: auto;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#welcomeContainer .btn-flex button:first-child {
  background: #2563eb;
  color: #ffffff;
}

#welcomeContainer .btn-flex button:first-child:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px -3px rgba(59, 130, 246, 0.5);
}

#welcomeContainer .btn-flex button:first-child:active {
  transform: translateY(0);
}

#welcomeContainer .btn-flex button:last-child {
  color: #ffffff;

  border: 2px solid #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: #0a0a0a;
}

#welcomeContainer .btn-flex button:last-child:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

#welcomeContainer .btn-flex button span {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

#welcomeContainer .btn-flex button:hover span {
  transform: translateX(4px);
}

/* ── Premium Clients Dashboard Mockup ── */
.clients-dashboard {
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

/* Browser Chrome Bar */
.dash-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dash-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #febc2e;
}
.dot-green {
  background: #28c840;
}

.dash-url-bar {
  flex: 1;
  background: #e8e8ed;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: #6e6e73;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
}

.dash-lock {
  font-size: 0.65rem;
}

.dash-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dash-action-btn {
  width: 24px;
  height: 18px;
  background: #e8e8ed;
  border-radius: 4px;
  display: block;
}

/* Dashboard Body */
.dash-body {
  padding: 20px;
  background: #fafafa;
}

/* Stats Row */
.dash-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

/* KPI Cards */
.dash-kpi-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-top: 2px solid #3b82f6;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
}

.dash-kpi-card.is-accent {
  border-top-color: #8b5cf6;
  background: linear-gradient(160deg, #faf8ff 0%, #ffffff 60%);
}

.dash-kpi-top {
  margin-bottom: 2px;
}

.dash-kpi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 0.75rem;
}

.dash-kpi-badge.is-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.dash-kpi-badge.is-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.dash-kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a0a0a;
  font-family: "Lexend", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1;
}

.dash-kpi-sub {
  font-size: 0.62rem;
  color: #9ca3af;
  font-weight: 400;
  line-height: 1;
}

/* Mini bar chart (Inovacija card) */
.dash-kpi-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-top: 4px;
}

.kpi-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, #8b5cf6, #c4b5fd);
  border-radius: 2px 2px 0 0;
  animation: bar-grow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.kpi-bar:nth-child(1) {
  animation-delay: 0.05s;
}
.kpi-bar:nth-child(2) {
  animation-delay: 0.12s;
}
.kpi-bar:nth-child(3) {
  animation-delay: 0.19s;
}
.kpi-bar:nth-child(4) {
  animation-delay: 0.26s;
}
.kpi-bar:nth-child(5) {
  animation-delay: 0.33s;
}
.kpi-bar:nth-child(6) {
  animation-delay: 0.4s;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

/* Divider */
.dash-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-divider::before,
.dash-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.dash-divider span {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Logo Grid inside Dashboard */
.dash-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-logo-cell {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dash-logo-cell:hover {
  transform: translateY(-2px) scale(1.05);
}

.dash-logo-cell img {
  max-width: 90%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(35%) opacity(0.75);
  transition: filter 0.3s ease;
}

.dash-logo-cell:hover img {
  filter: grayscale(0%) opacity(1);
}

#aboutUs {
  display: flex;
  align-items: flex-start;
  /* sadržaj sekcije počinje od vrha, ne centrirano po visini */
  justify-content: center;
  background-color: transparent !important;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

#aboutUs .about-content {
  /* Vraćeno na flex, kao u tvojoj originalnoj verziji */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  gap: 120px;
}

#aboutUs .left {
  width: 40%;
}

#aboutUs .left .left-content {
  width: 100%;
  position: sticky;
  top: 100px;
}

#aboutUs .left .section-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  display: inline-block;
  border: 1px solid rgba(0, 71, 171, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
}

#aboutUs .left .decorative-line {
  display: none;
}

#aboutUs .right {
  width: 60%;
}

#aboutUs .right .right-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

#aboutUs .right .about-us-group {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

#aboutUs h3 {
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

#aboutUs h3 span {
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

#aboutUs .text-c h4 {
  font-size: 1.6rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

#aboutUs .text-c p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0;
}

#aboutUs .button-flex {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

#aboutUs .button-flex button {
  height: 55px;
  padding: 0 34px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  background-color: var(--text-primary);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#aboutUs .button-flex button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#aboutUs .button-flex a {
  height: 55px;
  padding: 0 34px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.1rem;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--divider);
  color: var(--color-secondary);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  gap: 8px;
}

#aboutUs .button-flex a:hover {
  background: transparent;
}

#aboutUs .button-flex a .material-symbols-outlined {
  transition: transform 0.3s ease;
}

#aboutUs .button-flex a:hover .material-symbols-outlined {
  transform: translateX(8px);
}

#usluge-pin-container {
  height: 400vh; /* Give enough space for the scroll animation */
  position: relative;
  background-color: #030303; /* Dark background for the whole pinned section */
}

#usluge-new {
  display: flex;
  align-items: center;
  height: 100vh; /* Make the section fill the viewport */
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
  position: sticky; /* Pin the section */
  top: 0;
  background-color: #030303;
}

#usluge-new .usluge-container {
  display: flex;
  align-items: center; /* Vertically center left and right columns */
  justify-content: space-between;
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  gap: 120px; /* Increased gap */
  height: 100%;
  position: relative;
  z-index: 1;
}

#usluge-new .usluge-left {
  max-width: 500px; /* Slightly smaller max-width */
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* z-index: 10; */ /* This was the problem */
}

#usluge-new .usluge-left h3 {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

#usluge-new .usluge-left p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7); /* Softer white */
  max-width: 480px;
}

#usluge-new .slider-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

#usluge-new .slider-controls .material-symbols-outlined {
  font-size: 26px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
}

#usluge-new .slider-controls .material-symbols-outlined:hover {
  color: #fff;
  transform: scale(1.1);
}

#usluge-new .dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

#usluge-new .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#usluge-new .dot.active {
  background-color: #fff;
  width: 24px;
  border-radius: 4px;
}

#usluge-new .slider-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 10px;
}

#usluge-new .slider-counter .current {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  min-width: 20px;
  text-align: right;
}
#usluge-new .slider-counter .divider {
  font-size: 0.8rem;
  opacity: 0.5;
}
#usluge-new .slider-counter .total {
  font-size: 0.85rem;
}

#usluge-new .usluge-right {
  width: 55%;
  height: 100%; /* Ensure the container takes full height */
  position: relative; /* Needed for absolute positioning of children */
  display: flex;
  justify-content: center;
  align-items: center;
  /* perspective: 1000px; Removed to keep flat stack look cleaner */
}

/* Common style for all image containers */
.image-wrapper {
  position: absolute;
  width: 75%; /* Slightly wider for better visibility */
  aspect-ratio: 4 / 3; /* Taller images */
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity, filter;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #111; /* Fallback background */
  /* Remove specific positioning - handled by JS */
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform-origin: center center;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide original caption, not needed for this design */
#usluge-new .image-caption {
  display: none;
}

/* --- Text transition synced to ring segment progress --- */
#usluge-new .usluge-left h3,
#usluge-new .usluge-left p {
  opacity: 1;
  position: relative;
  top: 0;
  transition:
    opacity 0.22s ease,
    top 0.22s ease;
}

#usluge-new .usluge-container.is-text-exit .usluge-left h3,
#usluge-new .usluge-container.is-text-exit .usluge-left p {
  opacity: 0;
  top: -10px;
}

#usluge-new .usluge-container.is-text-enter .usluge-left h3 {
  animation: usluge-text-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#usluge-new .usluge-container.is-text-enter .usluge-left p:nth-of-type(1) {
  animation: usluge-text-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

#usluge-new .usluge-container.is-text-enter .usluge-left p:nth-of-type(2) {
  animation: usluge-text-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes usluge-text-in {
  from {
    opacity: 0;
    top: 12px;
  }
  to {
    opacity: 1;
    top: 0;
  }
}

#portfolio {
  padding: 160px 0;
  position: relative;
  background-color: #0047ab0c;
  text-align: center;
}

#portfolio .title-c {
  margin-bottom: 60px;
}

#portfolio h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

#portfolio h3 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
#portfolio .mid-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
#portfolio .mid-content img {
  width: 27%;
  object-fit: contain;
}
#portfolio .portfolio-footer button {
  height: 55px;
  padding: 0 42px;
  border-radius: 28px;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

#portfolio .portfolio-footer button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* FEATURES SECTION */
#features {
  padding: 120px 0;
  background-color: var(--bg-primary); /* #fafafa */
  color: var(--text-primary);
}

#features .features-container {
  width: 90%;
  max-width: 1600px; /* Matched from #aboutUs */
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 180px;
}

#features .feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 120px; /* Increased gap to match wider layout */
}

#features .feature-row.reverse {
  flex-direction: row-reverse;
}

#features .feature-text {
  flex: 1;
  /* Removed max-width: 500px to allow fluid text */
}

#features .feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

#features .feature-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  display: inline-block;
  opacity: 0.7;
}

#features .feature-heading {
  font-size: 2.6rem; /* Matched from #aboutUs h3 */
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

#features .feature-desc {
  font-size: 1.1rem; /* Matched from #aboutUs p */
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

#features .feature-link {
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background-color: transparent;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 400;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#features .feature-link:hover {
  background: transparent;
}

#features .feature-link .material-symbols-outlined {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

#features .feature-link:hover .material-symbols-outlined {
  transform: translateX(8px);
}

#features .feature-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

#features .feature-icons img {
  opacity: 0.8;
  transition: transform 0.3s ease;
  width: 32px;
  height: 32px;
}

#features .feature-icons img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* Security Card at bottom */
#features .security-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
}

#features .sec-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

#features .sec-icon {
  font-size: 2.4rem;
  color: var(--color-primary);
}

#features .sec-text h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

#features .sec-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

#features .sec-btn {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#features .sec-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Mock Visuals */
#features .visual-placeholder {
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
}

#features .visual-content {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

/* Abstract graph for first feature */
#features .graph-mockup {
  width: 80%;
  height: 60%;
  background: linear-gradient(
    180deg,
    rgba(0, 71, 171, 0.05) 0%,
    rgba(0, 71, 171, 0) 100%
  );
  border-bottom: 2px solid var(--color-primary);
  border-radius: 4px;
  position: relative;
}
#features .graph-mockup::after {
  content: "";
  position: absolute;
  top: 30%;
  left: 30%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.2);
}

/* Abstract chat for second feature */
#features .chat-mockup {
  width: 80%;
  height: 80%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
#features .chat-msg-left {
  width: 60%;
  height: 40px;
  background: #f1f5f9;
  border-radius: 20px 20px 20px 4px;
  align-self: flex-start;
}
#features .chat-msg-right {
  width: 70%;
  height: 50px;
  background: #e0f2fe;
  border-radius: 20px 20px 4px 20px;
  align-self: flex-end;
}

/* Features Section Header */
#features .features-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  padding-bottom: 40px;
}

#features .features-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(0, 71, 171, 0.22);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

#features .features-title {
  font-family: "Lexend", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

#features .features-title span {
  color: var(--color-primary);
}

#features .features-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Feature checklist */
#features .feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#features .feature-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

#features .feature-checklist li .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ── Browser Mockup ── */
.fv-browser-mockup {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--divider);
  overflow: hidden;
}

.fvm-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #f5f5f7;
  border-bottom: 1px solid #e8e8ea;
}

.fvm-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fvm-url {
  flex: 1;
  background: #e8e8ea;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
}

.fvm-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fafafa;
}

.fvm-hero {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fvm-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fvm-line {
  height: 10px;
  border-radius: 6px;
  background: #e2e8f0;
}

.fvm-line-title {
  height: 18px;
  width: 75%;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}

.fvm-line-subtitle {
  width: 90%;
  background: #e8edf4;
}

.fvm-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.fvm-btn {
  height: 28px;
  border-radius: 6px;
  width: 80px;
}

.fvm-btn-primary {
  background: var(--color-primary);
  opacity: 0.85;
}

.fvm-btn-ghost {
  background: transparent;
  border: 1.5px solid #cbd5e1;
}

.fvm-hero-img {
  flex: 0 0 38%;
}

.fvm-img-block {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.fvm-img-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer 2.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.fvm-cards-row {
  display: flex;
  gap: 12px;
}

.fvm-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fvm-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #c7d2fe);
}

.fvm-card-line {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}

.fvm-card-line.short {
  width: 55%;
  background: #eff2f7;
}

/* ── Performance Metrics Mockup ── */
.fv-metrics-mockup {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--divider);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fvm-metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fvm-metrics-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fvm-metrics-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #22c55e;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 100px;
}

.fvm-metrics-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.fvm-score-row {
  display: flex;
  gap: 16px;
  justify-content: space-around;
}

.fvm-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.fvm-score-ring {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.fvm-ring-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 3;
}

.fvm-ring-fill {
  fill: none;
  stroke: var(--score-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  transition: stroke-dasharray 1s ease;
}

.fvm-score-num {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}

.fvm-score-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  margin-top: 28px;
}

.fvm-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--divider);
  padding-top: 20px;
}

.fvm-metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fvm-metric-name {
  font-size: 0.82rem;
  color: var(--text-secondary);
  width: 160px;
  flex-shrink: 0;
}

.fvm-metric-bar {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.fvm-metric-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.fvm-metric-val {
  font-size: 0.82rem;
  font-weight: 600;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.fvm-metric-val.good {
  color: #22c55e;
}

/* ── Analytics Mockup ── */
.fv-analytics-mockup {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--divider);
  overflow: hidden;
}

.fva-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 16px;
}

.fva-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.fva-stat {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.fva-stat-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: #22c55e;
}

.fva-period {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.fva-chart {
  height: 120px;
  padding: 0 0 0 0;
}

.fva-chart-svg {
  width: 100%;
  height: 100%;
}

.fva-keywords {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--divider);
}

.fva-kw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--divider);
  transition: background 0.2s ease;
}

.fva-kw-item:last-child {
  border-bottom: none;
}

.fva-kw-item:hover {
  background: #f8fafc;
}

.fva-kw-pos {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pos-1 {
  background: #fef9c3;
  color: #854d0e;
}
.pos-2 {
  background: #f1f5f9;
  color: #475569;
}
.pos-3 {
  background: #fdf4ff;
  color: #7e22ce;
}

.fva-kw-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.fva-kw-delta {
  font-size: 0.8rem;
  font-weight: 600;
}

.fva-kw-delta.up {
  color: #22c55e;
}

/* ── Features CTA Banner ── */
.features-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-secondary);
  border-radius: 16px;
  padding: 40px 48px;
  gap: 24px;
}

.fcb-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fcb-icon {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.fcb-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.fcb-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.fcb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fcb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.fcb-btn .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.fcb-btn:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Responsive */

#contactUs {
  padding: 120px 0;
  background-color: #fff;
}

#contactUs .contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  gap: 120px;
}

#contactUs .contact-left {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contactUs .contact-title {
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

#contactUs .contact-title span {
  font-weight: 500;
  color: var(--color-primary);
}

#contactUs .contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

#contactUs .contact-illustration img {
  max-width: 100%;
  height: auto;
}

#contactUs .contact-right {
  width: 55%;
  display: flex;
  flex-direction: column;
}

#contactUs .contact-right-header {
  padding: 0 50px; /* Align with form card padding */
}

#contactUs .contact-form-card {
  background-color: transparent;
  border-radius: 16px;
  padding: 0 50px 50px 50px;
}

#contactUs .contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#contactUs .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

#contactUs .form-group {
  position: relative;
}

#contactUs .full-width {
  grid-column: 1 / -1;
}

#contactUs .contact-form input[type="text"],
#contactUs .contact-form input[type="email"],
#contactUs .contact-form input[type="tel"],
#contactUs .contact-form textarea {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

#contactUs .contact-form input:focus,
#contactUs .contact-form textarea:focus {
  border-bottom-color: #333;
}

#contactUs .contact-form input::placeholder,
#contactUs .contact-form textarea::placeholder {
  color: #666;
}

#contactUs .custom-select-wrapper {
  position: relative;
  width: 100%;
}

#contactUs .custom-select {
  width: 100%;
  padding: 10px 30px 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 1rem;
  color: #666;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#contactUs .select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 18px;
}

#contactUs .budget-group {
  margin-top: 10px;
}

#contactUs .budget-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 15px;
}

#contactUs .budget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#contactUs .budget-pill {
  cursor: pointer;
}

#contactUs .budget-pill input[type="radio"] {
  display: none;
}

#contactUs .budget-pill .pill-text {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #888;
  transition: all 0.2s ease;
}

#contactUs .budget-pill input[type="radio"]:checked + .pill-text {
  border-color: #333;
  color: #333;
  background-color: #fff;
}

#contactUs .details-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
}

#contactUs .contact-form textarea {
  min-height: 80px;
  resize: vertical;
}

#contactUs .form-submit-container {
  margin-top: 10px;
}

#contactUs .contact-submit-btn {
  background-color: var(--color-primary);
  color: #fff;
  width: 100%;
}

#contactUs .contact-submit-btn:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
}

#contactUs .contact-footer {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 80px;
  padding: 0 5%;
}

#contactUs .contact-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#contactUs .cf-label {
  font-size: 0.85rem;
  color: #888;
}

#contactUs .cf-link {
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#contactUs .cf-link:hover {
  color: #2edb8e;
}

#testimonials {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background-color: #d6ebff31;
}

#testimonials h3 {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 60px;
}

#testimonials .cards-container {
  column-count: 4;
  column-gap: 24px;
  width: 90%;
  margin-inline: auto;
  max-width: 1600px;
}

#testimonials .custom-card {
  width: 100%;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 24px;
}

#testimonials .custom-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

#testimonials .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#testimonials .user-info {
  margin-left: 16px;
}

#testimonials h6 {
  font-size: 1.1rem;
  margin-bottom: 2px !important;
  font-weight: 600;
  color: #000000f1;
}

#testimonials p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 0;
}

#testimonials span {
  color: #0000005e;
  font-size: 0.95rem;
  font-weight: 500;
}

#testimonials a {
  color: #000000;
  font-weight: bold;
  transition: all 0.3s;
}

#testimonials a:hover {
  color: #000000e7;
}

/* ===========================
   PREMIUM ANIMATIONS
   =========================== */

@keyframes hero-fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-appear {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(
    100px
  ); /* Increased movement distance for premium feel */
  transition:
    opacity 0.75s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

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

/* --- NEW PREMIUM SCROLL ANIMATIONS --- */
.reveal-up,
.reveal-down,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-blur {
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reveal-up {
  transform: translateY(60px);
}
.reveal-down {
  transform: translateY(-60px);
}
.reveal-left {
  transform: translateX(-60px);
}
.reveal-right {
  transform: translateX(60px);
}
.reveal-scale {
  transform: scale(0.9);
}

.reveal-blur {
  filter: blur(10px);
  transform: translateY(30px);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease-out;
}

.reveal-up.is-visible,
.reveal-down.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.reveal-blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

/* Enable stagger via custom property */
.reveal-item {
  transition-delay: var(--reveal-delay, 0s);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================
   MODERN RESPONSIVENESS (Mobile & Tablet)
   ========================================= */

/* =========================================
   EXTRA SMALL DEVICES (Phones < 500px)
   ========================================= */

/* =========================================
   USLUGE - PREMIUM ROTATING CIRCLE STYLES
   ========================================= */

#usluge-new .usluge-container {
  --progress-angle: 0deg; /* Controlled by JS */
}

#usluge-new .usluge-right {
  --glow-opacity: 0.7;
}

.rotating-circle-container {
  position: relative;

  width: 500px;

  height: 500px;

  display: flex;

  justify-content: center;

  align-items: center;
}

.rotating-circle-container::before {
  content: "";

  position: absolute;

  inset: 20px;

  border-radius: 50%;

  border: 2px solid rgba(255, 255, 255, 0.2);

  z-index: 0;
}

.rotating-circle-container::after {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.rotating-circle {
  position: absolute;

  width: 100%;

  height: 100%;

  border-radius: 50%;
  transform: rotate(var(--rotation-angle));
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Main rotating border with progress fill */
.rotating-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* border: 12px solid rgba(255, 255, 255, 0.15); */ /* Replaced by SVG border */
  transition: background 0.2s ease-out; /* Smooth the gradient change */
}

/* --- New Art Styles --- */
.art-slide {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  transform-origin: center;
  will-change: opacity;
  pointer-events: none;
}

.art-slide.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Slide 0: Digital Transformation */
#art-slide-0 > circle {
  stroke: var(--color-primary);
  filter: none;
}
#art-slide-0 .dt-lines line {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}
#art-slide-0 .dt-nodes circle {
  fill: rgba(255, 255, 255, 0.4);
}
#art-slide-0.is-visible .dt-lines {
  animation: dt-lines-fade-in 0.6s ease forwards;
}
@keyframes dt-lines-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#art-slide-0.is-visible .dt-nodes circle {
  animation: dt-node-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: scale(0);
}
#art-slide-0.is-visible .dt-nodes circle:nth-child(1) {
  animation-delay: 0.1s;
}
#art-slide-0.is-visible .dt-nodes circle:nth-child(2) {
  animation-delay: 0.15s;
}
#art-slide-0.is-visible .dt-nodes circle:nth-child(3) {
  animation-delay: 0.2s;
}
#art-slide-0.is-visible .dt-nodes circle:nth-child(4) {
  animation-delay: 0.25s;
}
#art-slide-0.is-visible .dt-nodes circle:nth-child(5) {
  animation-delay: 0.3s;
}
#art-slide-0.is-visible .dt-nodes circle:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes dt-node-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Slide 1: Web Design */
#art-slide-1 .laptop-screen-frame {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
}

#art-slide-1 .laptop-screen-inner {
  fill: rgba(255, 255, 255, 0.03);
  stroke: none;
}

#art-slide-1 .browser-bar {
  fill: rgba(255, 255, 255, 0.1);
}

#art-slide-1 .dot {
  fill: #ffffff;
}

#art-slide-1 .content-hero,
#art-slide-1 .content-img {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  opacity: 0;
}

#art-slide-1 .content-line {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}

/* Animations */
#art-slide-1.is-visible .laptop-screen-frame {
  animation: fade-in-up 0.6s ease-out forwards;
}

#art-slide-1.is-visible .laptop-screen-inner,
#art-slide-1.is-visible .browser-ui {
  animation: fade-in 0.4s ease-out 0.3s forwards;
  opacity: 0;
}

#art-slide-1.is-visible .content-hero,
#art-slide-1.is-visible .content-img {
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
#art-slide-1.is-visible .content-hero {
  animation-delay: 0.4s;
}
#art-slide-1.is-visible .content-img {
  animation-delay: 0.45s;
}

#art-slide-1.is-visible .content-line {
  animation:
    draw 0.6s ease-out forwards,
    fade-in 0.1s linear forwards;
}

#art-slide-1.is-visible .content-line:nth-of-type(1) {
  animation-delay: 0.5s;
}
#art-slide-1.is-visible .content-line:nth-of-type(2) {
  animation-delay: 0.55s;
}
#art-slide-1.is-visible .content-line:nth-of-type(3) {
  animation-delay: 0.6s;
}

/* Decorative Details */
#art-slide-1 .web-deco-details .deco-dot {
  fill: var(--color-primary);
  opacity: 0;
  transform-origin: center;
}

#art-slide-1 .web-deco-details .deco-plus {
  stroke: var(--color-primary);
  stroke-width: 1;
  opacity: 0;
}

#art-slide-1.is-visible .web-deco-details .deco-dot {
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.7s; /* Delay to appear after main content */
}
#art-slide-1.is-visible .web-deco-details .deco-dot:nth-of-type(2) {
  animation-delay: 0.75s;
}
#art-slide-1.is-visible .web-deco-details .deco-dot:nth-of-type(3) {
  animation-delay: 0.8s;
}

#art-slide-1.is-visible .web-deco-details .deco-plus {
  animation: fade-in 0.5s ease-out forwards;
  animation-delay: 0.7s;
}
#art-slide-1.is-visible .web-deco-details .deco-plus:nth-of-type(2) {
  animation-delay: 0.75s;
}

/* Slide 2: E-commerce */
#art-slide-2 path,
#art-slide-2 circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#art-slide-2 .ecom-cart {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
#art-slide-2.is-visible .ecom-cart {
  animation: draw 0.8s ease-out forwards;
}
#art-slide-2 circle,
#art-slide-2 .ecom-plus {
  transform: scale(0);
}
#art-slide-2.is-visible circle,
#art-slide-2.is-visible .ecom-plus {
  animation: pop-in 0.4s ease-out forwards;
  transform-origin: center;
}
#art-slide-2.is-visible circle:nth-of-type(1) {
  animation-delay: 0.4s;
}
#art-slide-2.is-visible circle:nth-of-type(2) {
  animation-delay: 0.5s;
}
#art-slide-2.is-visible .ecom-plus {
  animation-delay: 0.6s;
  stroke: var(--color-primary);
}

#art-slide-2 .ecom-details .ecom-particle {
  fill: var(--color-primary);
  stroke: none;
  opacity: 0;
  transform-origin: center;
}

#art-slide-2 .ecom-details .ecom-particle.is-soft {
  fill: rgba(255, 255, 255, 0.6);
}

#art-slide-2 .ecom-details .ecom-particle.is-strong {
  fill: var(--color-primary);
}

#art-slide-2 .ecom-details .ecom-spark {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0;
}

#art-slide-2 .ecom-details .ecom-spark-diamond {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-linejoin: round;
}

#art-slide-2 .ecom-details .ecom-spark-arc {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1;
}

#art-slide-2.is-visible .ecom-details .ecom-particle {
  opacity: 1;
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(1) {
  animation-delay: 0.7s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(2) {
  animation-delay: 0.75s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(3) {
  animation-delay: 0.8s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(4) {
  animation-delay: 0.85s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(5) {
  animation-delay: 0.9s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(6) {
  animation-delay: 0.95s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(7) {
  animation-delay: 1s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(8) {
  animation-delay: 1.05s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(9) {
  animation-delay: 1.1s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(10) {
  animation-delay: 1.15s;
}
#art-slide-2.is-visible .ecom-details .ecom-particle:nth-of-type(11) {
  animation-delay: 1.2s;
}

#art-slide-2.is-visible .ecom-details .ecom-spark {
  animation: fade-in 0.35s ease-out forwards;
}
#art-slide-2.is-visible .ecom-details .ecom-spark:nth-of-type(1) {
  animation-delay: 0.95s;
}
#art-slide-2.is-visible .ecom-details .ecom-spark:nth-of-type(2) {
  animation-delay: 1.05s;
}
#art-slide-2.is-visible .ecom-details .ecom-spark:nth-of-type(3) {
  animation-delay: 1.15s;
}

/* Slide 3: Mobile Apps */
#art-slide-3 .mobile-frame {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
}
#art-slide-3 .mobile-notch {
  fill: rgba(255, 255, 255, 0.4);
}

#art-slide-3 .app-profile {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

#art-slide-3 .app-header-line {
  fill: rgba(255, 255, 255, 0.2);
}

#art-slide-3 .app-card {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

#art-slide-3 .app-chart {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

#art-slide-3 .app-list-item {
  fill: rgba(255, 255, 255, 0.1);
  opacity: 0;
}

#art-slide-3 .app-fab {
  fill: var(--color-primary);
  transform: scale(0);
  transform-origin: center;
}

#art-slide-3 .app-fab-plus {
  stroke: #fff;
  stroke-width: 0.5;
  stroke-linecap: round;
  opacity: 0;
}

#art-slide-3 .app-details .app-particle {
  fill: var(--color-primary);
  stroke: none;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
}

#art-slide-3 .app-details .app-particle.is-soft {
  fill: rgba(255, 255, 255, 0.6);
}

#art-slide-3 .app-details .app-particle.is-strong {
  fill: var(--color-primary);
}

#art-slide-3 .app-details .app-spark {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0;
}

#art-slide-3 .app-details .app-spark-bars {
  stroke: rgba(255, 255, 255, 0.75);
}

#art-slide-3 .app-details .app-spark-wave {
  stroke: var(--color-primary);
  stroke-width: 1;
}

#art-slide-3 .app-details .app-spark-corner {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-linejoin: round;
}

/* Animations */
#art-slide-3.is-visible .mobile-frame {
  animation: fade-in-up 0.5s ease-out forwards;
}
#art-slide-3.is-visible .app-profile {
  animation: pop-in 0.4s 0.2s forwards;
  transform: scale(0);
  transform-origin: center;
}
#art-slide-3.is-visible .app-header-line {
  animation: fade-in 0.4s 0.25s forwards;
  opacity: 0;
}
#art-slide-3.is-visible .app-card {
  animation: fade-in-up 0.5s 0.3s forwards;
  opacity: 0;
}
#art-slide-3.is-visible .app-chart {
  animation: draw 0.6s 0.4s forwards;
}
#art-slide-3.is-visible .app-list-item {
  animation: fade-in-up 0.4s forwards;
  opacity: 0;
}
#art-slide-3.is-visible .app-list-item:nth-of-type(1) {
  animation-delay: 0.5s;
}
#art-slide-3.is-visible .app-list-item:nth-of-type(2) {
  animation-delay: 0.55s;
}
#art-slide-3.is-visible .app-list-item:nth-of-type(3) {
  animation-delay: 0.6s;
}
#art-slide-3.is-visible .app-fab {
  animation: pop-in 0.4s 0.65s forwards;
}
#art-slide-3.is-visible .app-fab-plus {
  animation: fade-in 0.3s 0.7s forwards;
}
#art-slide-3.is-visible .app-details .app-particle {
  animation: pop-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
#art-slide-3.is-visible .app-details .app-particle:nth-of-type(1) {
  animation-delay: 0.65s;
}
#art-slide-3.is-visible .app-details .app-particle:nth-of-type(2) {
  animation-delay: 0.7s;
}
#art-slide-3.is-visible .app-details .app-particle:nth-of-type(3) {
  animation-delay: 0.75s;
}
#art-slide-3.is-visible .app-details .app-particle:nth-of-type(4) {
  animation-delay: 0.8s;
}
#art-slide-3.is-visible .app-details .app-particle:nth-of-type(5) {
  animation-delay: 0.85s;
}
#art-slide-3.is-visible .app-details .app-particle:nth-of-type(6) {
  animation-delay: 0.9s;
}
#art-slide-3.is-visible .app-details .app-spark {
  animation: fade-in 0.35s ease-out forwards;
}
#art-slide-3.is-visible .app-details .app-spark:nth-of-type(1) {
  animation-delay: 0.82s;
}
#art-slide-3.is-visible .app-details .app-spark:nth-of-type(2) {
  animation-delay: 0.92s;
}
#art-slide-3.is-visible .app-details .app-spark:nth-of-type(3) {
  animation-delay: 1.02s;
}

/* Slide 4: Graphic Design */
#art-slide-4 .gd-palette {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

#art-slide-4 .gd-paint {
  opacity: 0;
  transform-origin: center;
}

#art-slide-4 .gd-brush {
  fill: var(--color-primary);
  opacity: 0;
}

#art-slide-4 .gd-brush-tip {
  fill: #ffffff;
  opacity: 0;
}

#art-slide-4 .gd-selection {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-dasharray: 3 2;
  opacity: 0;
}

#art-slide-4 .gd-cursor {
  fill: #fff;
  opacity: 0;
}

#art-slide-4 .gd-deco {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
  opacity: 0;
}

#art-slide-4 .gd-deco-dot {
  fill: rgba(255, 255, 255, 0.3);
  opacity: 0;
}

/* Animations */
#art-slide-4.is-visible .gd-palette {
  animation: fade-in-up 0.6s ease-out forwards;
}

#art-slide-4.is-visible .gd-paint {
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
#art-slide-4.is-visible .gd-paint:nth-of-type(2) {
  animation-delay: 0.1s;
}
#art-slide-4.is-visible .gd-paint:nth-of-type(3) {
  animation-delay: 0.15s;
}
#art-slide-4.is-visible .gd-paint:nth-of-type(4) {
  animation-delay: 0.2s;
}
#art-slide-4.is-visible .gd-paint:nth-of-type(5) {
  animation-delay: 0.25s;
}
#art-slide-4.is-visible .gd-paint:nth-of-type(6) {
  animation-delay: 0.3s;
}

#art-slide-4.is-visible .gd-brush,
#art-slide-4.is-visible .gd-brush-tip {
  animation: fade-in 0.5s ease-out 0.3s forwards;
}

#art-slide-4.is-visible .gd-selection {
  animation: fade-in 0.4s ease-out 0.4s forwards;
}

#art-slide-4.is-visible .gd-cursor {
  animation: gd-cursor-move 0.8s ease-out 0.4s forwards;
}

@keyframes gd-cursor-move {
  0% {
    opacity: 0;
    transform: translate(10px, 10px);
  }
  20% {
    opacity: 1;
    transform: translate(10px, 10px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

#art-slide-4.is-visible .gd-deco,
#art-slide-4.is-visible .gd-deco-dot {
  animation: fade-in 0.5s ease-out 0.5s forwards;
}

/* Slide 5: SEO */
#art-slide-5 .seo-glass,
#art-slide-5 .seo-handle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2.5;
}
#art-slide-5 .seo-lines line {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  transform: scaleX(0);
  transform-origin: left;
}
#art-slide-5.is-visible .seo-lines line {
  animation: scale-in 0.4s ease-out forwards;
}
#art-slide-5.is-visible .seo-lines line:nth-child(2) {
  animation-delay: 0.3s;
}
#art-slide-5.is-visible .seo-lines line:nth-child(3) {
  animation-delay: 0.4s;
}
#art-slide-5 .seo-graph {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
#art-slide-5.is-visible .seo-graph {
  animation: draw 0.8s ease-out 0.4s forwards;
}
#art-slide-5 .seo-glass,
#art-slide-5 .seo-handle {
  opacity: 0;
}
#art-slide-5.is-visible .seo-glass,
#art-slide-5.is-visible .seo-handle {
  animation: fade-in 0.5s ease-out forwards;
}

#art-slide-5 .seo-details .seo-particle {
  fill: var(--color-primary);
  stroke: none;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
}

#art-slide-5 .seo-details .seo-particle.is-soft {
  fill: rgba(255, 255, 255, 0.6);
}

#art-slide-5 .seo-details .seo-particle.is-strong {
  fill: var(--color-primary);
}

#art-slide-5 .seo-details .seo-spark {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0;
}

#art-slide-5 .seo-details .seo-spark-chevron {
  stroke: var(--color-primary);
  stroke-linejoin: round;
}

#art-slide-5 .seo-details .seo-spark-dash {
  stroke: rgba(255, 255, 255, 0.75);
}

#art-slide-5 .seo-details .seo-spark-pulse {
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1;
  stroke-linejoin: round;
}

#art-slide-5.is-visible .seo-details .seo-particle {
  animation: pop-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
#art-slide-5.is-visible .seo-details .seo-particle:nth-of-type(1) {
  animation-delay: 0.55s;
}
#art-slide-5.is-visible .seo-details .seo-particle:nth-of-type(2) {
  animation-delay: 0.6s;
}
#art-slide-5.is-visible .seo-details .seo-particle:nth-of-type(3) {
  animation-delay: 0.65s;
}
#art-slide-5.is-visible .seo-details .seo-particle:nth-of-type(4) {
  animation-delay: 0.7s;
}
#art-slide-5.is-visible .seo-details .seo-particle:nth-of-type(5) {
  animation-delay: 0.75s;
}
#art-slide-5.is-visible .seo-details .seo-particle:nth-of-type(6) {
  animation-delay: 0.8s;
}
#art-slide-5.is-visible .seo-details .seo-spark {
  animation: fade-in 0.35s ease-out forwards;
}
#art-slide-5.is-visible .seo-details .seo-spark:nth-of-type(1) {
  animation-delay: 0.78s;
}
#art-slide-5.is-visible .seo-details .seo-spark:nth-of-type(2) {
  animation-delay: 0.86s;
}
#art-slide-5.is-visible .seo-details .seo-spark:nth-of-type(3) {
  animation-delay: 0.94s;
}

/* Common Keyframes */
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop-in {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes scale-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================
   PREMIUM ART (KINETIC SCULPTURE)
   =========================== */

.premium-art-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Zauzima dobar deo unutar rotirajućeg kruga */
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-art-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.segment-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 149, 255, 0.55);
  background: rgba(5, 12, 28, 0.92);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    left 0.2s linear,
    top 0.2s linear,
    opacity 0.18s ease;
  z-index: 16;
}

.segment-label.is-visible {
  opacity: 1;
}

.segment-label.is-pop {
  animation: segment-label-pop 0.22s ease-out;
}

.segment-label-text {
  white-space: nowrap;
}

@keyframes segment-label-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Zajednički stilovi za prstenove */
.art-ring {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  transform-origin: center;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.8;
}

/* Specifični prstenovi */
.ring-outer-segment {
  stroke-dasharray: 87.63 528.12;
  stroke-opacity: 1;
  stroke-width: 4.5;
  opacity: 0.1;
  transform: rotate(-90deg);
  transform-origin: center;
}

.ring-outer-fill {
  stroke-dasharray: 0 615.75;
  stroke-opacity: 1;
  stroke-width: 5.5;
  opacity: 1;
  transition: stroke-dasharray 0.12s linear;
  transform: rotate(-90deg);
  transform-origin: center;
}

.ring-outer-segment.seg-1 {
  stroke: rgb(90, 149, 255);
  stroke-dashoffset: 0;
}
.ring-outer-segment.seg-2 {
  stroke: rgb(53, 114, 216);
  stroke-dashoffset: -102.63;
}
.ring-outer-segment.seg-3 {
  stroke: rgb(37, 87, 184);
  stroke-dashoffset: -205.26;
}
.ring-outer-segment.seg-4 {
  stroke: rgb(27, 66, 152);
  stroke-dashoffset: -307.89;
}
.ring-outer-segment.seg-5 {
  stroke: rgb(18, 48, 122);
  stroke-dashoffset: -410.52;
}
.ring-outer-segment.seg-6 {
  stroke: rgb(11, 31, 94);
  stroke-dashoffset: -513.15;
}

.ring-outer-fill.seg-1 {
  stroke: rgb(90, 149, 255);
  stroke-dashoffset: 0;
}
.ring-outer-fill.seg-2 {
  stroke: rgb(53, 114, 216);
  stroke-dashoffset: -102.63;
}
.ring-outer-fill.seg-3 {
  stroke: rgb(37, 87, 184);
  stroke-dashoffset: -205.26;
}
.ring-outer-fill.seg-4 {
  stroke: rgb(27, 66, 152);
  stroke-dashoffset: -307.89;
}
.ring-outer-fill.seg-5 {
  stroke: rgb(18, 48, 122);
  stroke-dashoffset: -410.52;
}
.ring-outer-fill.seg-6 {
  stroke: rgb(11, 31, 94);
  stroke-dashoffset: -513.15;
}

/* Waves Animation */
.waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  min-height: 150px;
  z-index: 1;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: -7px;
}

.parallax > use {
  animation-timing-function: cubic-bezier(0.55, 0.5, 0.45, 0.5);
  animation-iteration-count: infinite;
}

.parallax > use:nth-child(1) {
  animation-name: move-forever;
  animation-delay: -2s;
  animation-duration: 17s;
}
.parallax > use:nth-child(2) {
  animation-name: move-forever-left;
  animation-delay: -5s;
  animation-duration: 13s;
}
.parallax > use:nth-child(3) {
  animation-name: move-forever;
  animation-delay: -3s;
  animation-duration: 11s;
}
.parallax > use:nth-child(4) {
  animation-name: move-forever-left;
  animation-delay: -4s;
  animation-duration: 19s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@keyframes move-forever-left {
  0% {
    transform: translate3d(85px, 0, 0);
  }
  100% {
    transform: translate3d(-90px, 0, 0);
  }
}

#srediste-poslovanja {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.srediste-header {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.srediste-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.srediste-header p {
  font-size: 1.2rem;
  color: #4b5563;
  font-weight: 500;
}

.srediste-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1600px;
  margin-inline: auto;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  gap: 120px;
}

.srediste-left {
  width: 40%;
  display: flex;
  justify-content: center;
}

.hex-grid {
  display: flex;
  flex-wrap: wrap;
  width: 400px;
  gap: 20px;
  justify-content: center;
}

.hex-wrapper {
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.08));
}

.hex-badge {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  width: 180px;
  height: 200px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.hex-wrapper:nth-child(even) {
  transform: translateY(100px);
}

.hex-icon {
  color: var(--color-primary);
  margin-bottom: 8px;
}

.hex-icon .material-symbols-outlined {
  font-size: 32px;
}

.hex-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.hex-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Decorative Elements */
.srediste-deco-circle {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 102, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.srediste-deco-dots {
  position: absolute;
  bottom: 50px;
  left: 2%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.srediste-right {
  width: 60%;
  position: relative;
  z-index: 1;
}

.srediste-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  display: inline-block;
  border: 1px solid rgba(0, 71, 171, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
}

.srediste-right h3 {
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.srediste-right h3 span {
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.srediste-text-wrapper {
  margin-bottom: 35px;
}

.srediste-right p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.srediste-right p:last-child {
  margin-bottom: 0;
}

.btn-kontakt {
  height: 55px;
  padding: 0 34px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  background-color: var(--text-primary);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  margin-top: 24px;
}

.btn-kontakt:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.klijenti-slider-section {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 120px;
}

.klijenti-slider-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.klijenti-slider-track-wrap {
  background: linear-gradient(90deg, #e2e8f0, #f1f5f9, #e2e8f0);
  padding: 30px 0;
  clip-path: ellipse(120% 100% at 50% 50%);
  margin: 0 -20px;
  overflow: hidden;
}

.klijenti-slider-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: max-content;
  animation: scrollLogos 20s linear infinite;
}

.klijenti-slider-track img {
  height: 35px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.klijenti-slider-track img:hover {
  filter: grayscale(0%) opacity(1);
}

/* ============================================
   LANDING TEMPLATES SECTION (Grid from image)
   ============================================ */
.landing-templates-section {
  background: #f4f7fb;
  padding: 120px 0;
  font-family: "Inter", sans-serif;
  position: relative;
  overflow: hidden;
}

.templates-header {
  text-align: center;
  margin: 0 auto 80px;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.templates-title {
  font-size: 2.6rem;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
}

.templates-subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px 40px;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.portfolio-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 30px 30px 50px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.card-header {
  margin-bottom: 25px;
}

.card-title {
  font-size: 0.95rem;
  color: #4b5563;
  font-weight: 500;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 1.5rem;
  color: #111827;
  font-weight: 600;
}

.card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  font-family: monospace;
}

.card-image-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f3f4f6;
}

.card-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.glass-pocket {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 80px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  pointer-events: none;
}

.glass-author,
.glass-year {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  font-family: monospace;
}

.card-footer-text {
  margin-top: 45px;
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 500;
  font-family: monospace;
}

.portfolio-link {
  margin-top: 8px;
  height: 55px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1rem;
  background-color: transparent;
  color: var(--color-secondary);
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.portfolio-link .btn-text {
  margin-right: 8px;
}

.portfolio-link .material-symbols-outlined {
  transition: transform 0.3s ease;
}

.portfolio-link:hover .material-symbols-outlined {
  transform: translateX(8px);
}

/* Scroll Animations */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.scroll-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-hex-grid {
  display: none;
  margin: 30px 0;
}

@media (max-width: 1499px) {
  #welcomeContainer h1 {
    font-size: 6.5rem;
  }
  #welcomeContainer p {
    font-size: 1.2rem;
  }
  #welcomeContainer .btn-flex button {
    font-size: 1.05rem;
    padding: 0 30px;
  }

  #aboutUs .left .section-label {
    font-size: 0.87rem;
  }

  #aboutUs h3 {
    font-size: 2.4rem;
  }
  #aboutUs .text-c h4 {
    font-size: 1.45rem;
  }
  #aboutUs .text-c p {
    font-size: 1rem;
  }
  #aboutUs .button-flex button {
    padding: 0px 30px;
    font-size: 1rem;
  }
  #aboutUs .button-flex a {
    font-size: 1rem;
  }
  .srediste-subtitle {
    font-size: 0.87rem;
  }
  .srediste-right h3 {
    font-size: 2.4rem;
  }
  .srediste-right p {
    font-size: 1rem;
  }
  .hex-number {
    font-size: 2rem;
  }
  .hex-text {
    font-size: 0.7rem;
  }
  .hex-badge {
    width: 160px;
    height: 180px;
  }
  .btn-kontakt {
    padding: 0px 30px;
    font-size: 1rem;
  }
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-image-wrapper img {
    height: 240px;
  }
  .portfolio-item-wrapper:nth-child(n + 7) {
    display: none;
  }
  .templates-title {
    font-size: 2.4rem;
  }
  .portfolio-link {
    font-size: 0.95rem;
  }
  .card-subtitle {
    font-size: 1.4rem;
  }
  #contactUs .contact-title {
    font-size: 2.4rem;
  }
  #contactUs .contact-subtitle {
    font-size: 1rem;
  }
  #usluge-new .usluge-left h3 {
    font-size: 2.4rem;
  }
  #usluge-new .usluge-left p {
    font-size: 1rem;
  }
  #usluge-new .usluge-container {
    gap: 80px;
  }
  .rotating-circle-container {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 1279px) {
  #welcomeContainer h1 {
    font-size: 5.8rem;
  }
  #welcomeContainer p {
    font-size: 1.1rem;
  }
  #welcomeContainer .btn-flex button {
    font-size: 0.95rem;
    padding: 0 26px;
  }

  #aboutUs .left .section-label {
    font-size: 0.8rem;
  }

  #aboutUs h3 {
    font-size: 2.1rem;
  }
  #aboutUs .text-c h4 {
    font-size: 1.3rem;
  }
  #aboutUs .text-c p {
    font-size: 0.95rem;
  }
  #aboutUs .button-flex button {
    padding: 0px 26px;
    font-size: 0.95rem;
  }
  #aboutUs .button-flex a {
    font-size: 0.95rem;
  }
  .srediste-subtitle {
    font-size: 0.8rem;
  }
  .srediste-right h3 {
    font-size: 2.1rem;
  }
  .srediste-right p {
    font-size: 0.95rem;
  }
  .hex-number {
    font-size: 1.8rem;
  }
  .hex-text {
    font-size: 0.65rem;
  }
  .hex-badge {
    width: 145px;
    height: 165px;
  }
  .btn-kontakt {
    padding: 0px 26px;
    font-size: 0.95rem;
  }
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 20px;
  }
  .portfolio-card {
    padding: 20px 20px 35px;
  }
  .card-image-wrapper img {
    height: 215px;
  }
  .portfolio-item-wrapper:nth-child(n + 7) {
    display: none;
  }
  .templates-title {
    font-size: 2.1rem;
  }
  .portfolio-link {
    font-size: 0.9rem;
  }
  .card-subtitle {
    font-size: 1.25rem;
  }
  #contactUs .contact-title {
    font-size: 2.1rem;
  }
  #contactUs .contact-subtitle {
    font-size: 0.95rem;
  }
  #usluge-new .usluge-left h3 {
    font-size: 2.1rem;
  }
  #usluge-new .usluge-left p {
    font-size: 0.95rem;
  }
  #usluge-new .usluge-container {
    gap: 60px;
  }
  .rotating-circle-container {
    width: 380px;
    height: 380px;
  }
}
@media (max-width: 1023px) {
  #welcomeContainer h1 {
    font-size: 4rem;
  }
  #welcomeContainer p {
    font-size: 1.1rem;
    max-width: 640px;
  }
  #welcomeContainer .btn-flex button,
  #welcomeContainer .btn-flex a {
    font-size: 0.95rem;
    padding: 0 24px;
    height: 52px;
  }
  #aboutUs h3 {
    font-size: 2.1rem;
  }
  #aboutUs .text-c h4 {
    font-size: 1.3rem;
  }
  #aboutUs .text-c p {
    font-size: 1rem;
  }
  #aboutUs .about-content {
    width: 95%;
    gap: 40px;
  }
  #aboutUs .right .right-content {
    gap: 50px;
  }
  #aboutUs .button-flex button,
  #aboutUs .button-flex a {
    font-size: 0.95rem;
    padding: 0 24px;
    height: 52px;
  }
  #usluge-new .usluge-container {
    gap: 40px;
  }
  .rotating-circle-container {
    width: 320px;
    height: 320px;
  }

  /* HARMONIJA FONTOVA - GLAVNI NASLOVI (2.1rem) */
  #usluge-new .usluge-left h3,
  #srediste-poslovanja .srediste-right h3,
  #srediste-poslovanja h3,
  #portfolio-templates .templates-title,
  #contactUs .contact-title,
  #testimonials h3 {
    font-size: 2.1rem;
  }

  /* HARMONIJA FONTOVA - PODNASLOVI (1.3rem) */
  #testimonials .client-name {
    font-size: 1.3rem;
  }

  /* HARMONIJA FONTOVA - PARAGRAFI (1rem) */
  #usluge-new .usluge-left p,
  #srediste-poslovanja .srediste-right p,
  #contactUs .contact-subtitle,
  #testimonials .quote-text {
    font-size: 1rem;
  }
  .srediste-content {
    flex-direction: column;
    gap: 60px;
  }
  .srediste-left {
    width: 100%;
    justify-content: center;
  }
  .srediste-right {
    width: 100%;
    text-align: left;
  }
  .srediste-left {
    display: none;
  }
  .mobile-hex-grid {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
  }
  .mobile-hex-grid .hex-wrapper {
    flex: 1;
    filter: none;
  }
  .mobile-hex-grid .hex-wrapper:nth-child(even) {
    transform: none;
  }
  .mobile-hex-grid .hex-badge {
    width: 100%;
    height: auto;
    min-height: 130px;
    clip-path: none;
    border-radius: 16px;
    background: #f8fafc;
    border: none;
    padding: 24px 20px;
    align-items: flex-start;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  }
  .mobile-hex-grid .hex-number {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 8px;
  }
  .mobile-hex-grid .hex-text {
    font-size: 0.85rem;
    text-align: left;
    color: #475569;
    font-weight: 500;
  }
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
  .portfolio-item-wrapper:nth-child(n + 7) {
    display: flex;
  }
  .portfolio-card {
    padding: 15px 15px 25px;
  }
  .card-image-wrapper img {
    height: 210px;
  }
  .btn-kontakt,
  #contactUs .contact-submit-btn {
    font-size: 0.95rem;
    padding: 0 24px;
    height: 52px;
    width: 250px;
  }
  .glass-pocket {
    height: 55px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 0 15px;
  }
  #contactUs .contact-left {
    display: none;
  }
  #contactUs .contact-right {
    width: 100%;
  }
  #contactUs .contact-right-header {
    padding: 0; /* Remove 50px side padding */
  }
  #contactUs .contact-form-card {
    padding: 0 0 50px 0; /* Remove 50px side padding */
  }

  /* Set all main containers to 95% width */
  #welcomeContainer .flex-container,
  #usluge-new .usluge-container,
  #features .features-container,
  #contactUs .contact-container,
  #testimonials .cards-container,
  .srediste-content,
  .templates-grid {
    width: 95%;
  }
}

@media (max-width: 767px) {
  /* ── SECTIONS: uniform padding ── */
  #welcomeContainer,
  #aboutUs,
  #features,
  #srediste-poslovanja,
  #portfolio-templates,
  #testimonials,
  #contactUs {
    padding: 48px 0;
  }

  #usluge-new {
    padding: 24px 0;
  }

  #aboutUs .about-content {
    flex-direction: column;
    gap: 55px;
  }
  #aboutUs .left,
  #aboutUs .right {
    width: 100%;
  }
  #aboutUs .left .left-content {
    position: relative;
    top: 0;
  }

  /* Welcome Container */
  #welcomeContainer {
    padding-top: 120px;
    min-height: 480px;
    height: 480px;
  }
  #welcomeContainer .flex-container {
    width: 92%;
    box-sizing: border-box;
  }
  #welcomeContainer h1 {
    font-size: 10vw;
    line-height: 1.2;
    margin-bottom: 16px;
    white-space: nowrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #welcomeContainer h1 br {
    display: none;
  }
  .hide-on-mobile {
    display: none;
  }
  #welcomeContainer h1 .text-rotator .rotator-item {
    text-align: center;
    width: 100%;
  }
  #welcomeContainer p {
    font-size: 0.88rem !important;
    line-height: 1.65;
    margin-bottom: 12px;
    margin-top: 30px !important;
    text-align: center;
  }
  #welcomeContainer .btn-flex {
    display: none;
  }

  /* Animate first parts of About Us automatically on mobile (after hero) */
  #aboutUs .left {
    animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both !important;
    transition: none !important;
  }
  #aboutUs .right .right-content .about-us-group:first-child {
    animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both !important;
    transition: none !important;
  }

  /* Typography Harmony for Mobile */
  #usluge-new .usluge-left h3,
  #srediste-poslovanja .srediste-right h3,
  #srediste-poslovanja h3,
  #portfolio-templates .templates-title,
  #contactUs .contact-title,
  #testimonials h3 {
    font-size: 1.8rem;
  }

  /* Black Sticky Section (Usluge) for Mobile */
  #usluge-pin-container {
    height: 350vh;
  }
  #usluge-new {
    height: 100svh;
    min-height: 550px;
    align-items: flex-start !important;
    padding-top: 10vh !important;
  }
  #usluge-new .usluge-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    height: 100%;
    padding: 0 16px;
  }

  #usluge-new .usluge-right {
    width: 100%;
    order: -1;
    display: flex;
    justify-content: center;
    height: 250px;
    flex-shrink: 0;
  }

  .rotating-circle-container {
    width: 250px;
    height: 250px;
    margin: 0;
  }

  #usluge-new .usluge-left {
    width: 100%;
    text-align: left;
    align-items: flex-start;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 90px;
  }

  #usluge-new .usluge-left h3 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #usluge-new .usluge-left p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    margin-left: 0;
    margin-right: 0;
    border-left: 2px solid rgba(59, 130, 246, 0.6);
    padding-left: 16px;
    color: rgba(255, 255, 255, 0.85);
  }

  #usluge-new .slider-controls {
    position: absolute;
    bottom: 24px;
    left: 0px; /* Moved left by 20px */
    right: 16px; /* Aligns with paragraph text end (16px container padding right) */
    width: auto;
    margin-top: 0;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    background-color: #030303;
    z-index: 10;
  }
  
  #usluge-new .dots {
    gap: 6px;
  }
  #usluge-new .dot {
    width: 8px;
    height: 8px;
  }
  #usluge-new .dot.active {
    width: 24px;
  }
  
  #usluge-new .slider-counter {
    margin-left: 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
  }
  
  /* Features Section */
  #features .feature-row,
  #features .feature-row.reverse {
    flex-direction: column;
    gap: 40px;
  }
  
  #features .features-container {
    gap: 100px;
  }

  #features .feature-text {
    text-align: center;
  }
  
  #features .feature-icons {
    justify-content: center;
  }

  #features .security-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }
  
  #features .sec-left {
    flex-direction: column;
    gap: 16px;
  }

  /* Templates Grid */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .templates-title {
    margin-bottom: 28px;
  }
  .portfolio-card {
    padding: 10px 10px 50px;
    border-radius: 12px;
  }
  .card-image-wrapper img {
    height: 200px;
    object-fit: cover;
  }  
  
  .glass-pocket {
    height: 40px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 0 14px;
    border-radius: 8px;
    justify-content: center;
  }
  .glass-author {
    font-size: 0.8rem;
    font-weight: 700;
  }
  .glass-year {
    display: none;
  }
  .portfolio-link {
    height: 40px;
    margin-top: 8px;
    padding: 0 5px;
    justify-content: flex-start;
  }
  .portfolio-link .btn-text {
    font-size: 0;
  }
  .portfolio-link .btn-text::after {
    content: "Pogledaj projekat";
    font-size: 0.85rem;
    margin-right: 4px;
  }
  .portfolio-link .material-symbols-outlined {
    font-size: 20px;
  }
  .portfolio-item-wrapper:nth-child(n + 5) {
    display: none;
  }
  .card-header {
    display: block;
    margin-bottom: 8px !important;
  }
  .card-header p {
    display: none;
  }
  /* Testimonials */
  #testimonials .cards-container {
    column-count: 1;
  }
}

@media (max-width: 499px) {
  /*
   * ═══════════════════════════════════════════════
   * UNIFIED MOBILE TOKENS — 499px
   * All section headings (h2/h3): 1.8rem  (= Strategija za Uspeh)
   * All sub-headings (h4):        1.1rem
   * All body text (p):            1.0rem / lh 1.65
   * Small labels / captions:      0.8rem
   * Button height: 44px, font: 0.95rem
   * Section padding: 48px
   * Container width: 92%
   * ═══════════════════════════════════════════════
   *
   * NOTE: !important je potreban jer selektori iz vecih
   * breakpointa (767px, 1023px) imaju vecu specificnost
   * (npr. #srediste-poslovanja .srediste-right h3 = 0,2,1)
   * pa bez !important ne bi mogli da ih nadjacamo ovde.
   */

  /* ── GLOBAL: force ALL h2, h3 to same size everywhere ── */
  #welcomeContainer h1 {
    font-size: 10vw;
    line-height: 1.2;
    margin-bottom: 16px;
    white-space: nowrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #welcomeContainer h1 br {
    display: none;
  }
  .hide-on-mobile {
    display: none;
  }
  #welcomeContainer h1 .text-rotator .rotator-item {
    text-align: center;
    width: 100%;
  }
  #welcomeContainer p {
    margin-top: 30px !important;
    text-align: center;
  }
  
  /* Animate first parts of About Us automatically on mobile (after hero) */
  #aboutUs .left {
    animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both !important;
    transition: none !important;
  }
  #aboutUs .right .right-content .about-us-group:first-child {
    animation: hero-fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both !important;
    transition: none !important;
  }
  #aboutUs h3,
  #usluge-new .usluge-left h3,
  #srediste-poslovanja .srediste-right h3,
  #srediste-poslovanja h3,
  #features .feature-text h3,
  .srediste-right h3,
  #portfolio-templates .templates-title,
  #portfolio-templates h2,
  #testimonials h3,
  #testimonials h2,
  #contactUs .contact-title,
  #contactUs h3 {
    font-size: 1.55rem !important;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  /* ── GLOBAL: force ALL h4 to same size everywhere ── */
  #aboutUs .text-c h4,
  .card-subtitle,
  .testimonial-author-info h4,
  #testimonials .client-name {
    font-size: 0.95rem !important;
    font-weight: 600;
    margin-bottom: 8px;
  }

  /* ── GLOBAL: force ALL body paragraphs to same size ── */
  #welcomeContainer p,
  #aboutUs .text-c p,
  #usluge-new .usluge-left p,
  #features .feature-text p,
  .srediste-right p,
  #srediste-poslovanja .srediste-right p,
  .testimonial-text,
  #testimonials .quote-text,
  #contactUs .contact-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.65;
    margin-bottom: 12px;
  }

  /* ── GLOBAL: small labels & captions ── */
  #aboutUs .left .section-label,
  .srediste-subtitle,
  .glass-year,
  .mobile-hex-grid .hex-text {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
  }

  /* ── SECTIONS: uniform padding ── */
  #welcomeContainer,
  #aboutUs,
  #features,
  #srediste-poslovanja,
  #portfolio-templates,
  #testimonials,
  #contactUs {
    padding: 48px 0;
  }
  
  #usluge-new {
    padding: 24px 0 !important;
  }
  #welcomeContainer {
    padding-top: 120px;
    min-height: 480px;
    height: 480px;
  }

  /* ── CONTAINERS: uniform width 92% ── */
  #welcomeContainer .flex-container,
  #aboutUs .about-content,
  #usluge-new .usluge-container,
  #features .features-container,
  .srediste-content,
  .templates-grid,
  #testimonials .cards-container,
  #contactUs .contact-container {
    width: 92%;
    box-sizing: border-box;
  }

  /* ── BUTTONS: uniform height/font ── */
  #welcomeContainer .btn-flex button,
  #welcomeContainer .btn-flex a,
  #aboutUs .button-flex button,
  #aboutUs .button-flex a,
  .btn-kontakt,
  #contactUs .submit-btn,
  #contactUs .contact-submit-btn {
    height: 44px;
    font-size: 0.95rem;
    padding: 0 20px;
  }
  #aboutUs .button-flex button,
  #aboutUs .button-flex a {
    width: 100%;
  }
  #welcomeContainer .btn-flex button,
  #welcomeContainer .btn-flex a {
    flex: 1;
    padding: 0 8px;
    font-size: 0.95rem;
  }
  #welcomeContainer .btn-flex {
    display: none;
  }
  #aboutUs .button-flex {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }
  #contactUs .submit-btn,
  #contactUs .contact-submit-btn {
    width: 100%;
  }

  /* ── ABOUT US: specific layout tweaks ── */
  #aboutUs .about-content {
    gap: 32px;
  }
  #aboutUs .right .right-content {
    gap: 32px;
  }
  #aboutUs .left .section-label {
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  #aboutUs .text-c h4 {
    margin-bottom: 8px;
  }

  /* ── USLUGE: circle & controls ── */
  #usluge-pin-container {
    height: 350vh !important;
  }
  #usluge-new {
    height: 100svh !important;
    min-height: 550px;
    position: sticky !important;
    top: 0 !important;
    align-items: flex-start !important;
    padding-top: 10vh !important;
  }
  #usluge-new .usluge-container {
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    height: 100%;
    padding-bottom: 0;
  }
  #usluge-new .usluge-right {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 250px;
    flex-shrink: 0;
  }
  .rotating-circle-container {
    width: 250px;
    height: 250px;
    margin: 0;
  }
  #usluge-new .slider-controls {
    gap: 8px;
  }
  #usluge-new .slider-counter {
    font-size: 0.95rem;
  }

  /* ── FEATURES: gaps & icons ── */
  #features .features-container {
    gap: 48px;
  }
  #features .feature-row,
  #features .feature-row.reverse {
    gap: 24px;
  }
  #features .feature-icons {
    gap: 8px;
  }
  #features .security-card {
    padding: 24px 16px;
    gap: 16px;
  }
  #features .feature-icon-badge {
    width: 42px;
    height: 42px;
  }
  #features .feature-icon-badge .material-symbols-outlined {
    font-size: 20px;
  }

  /* ── SREDISTE POSLOVANJA: hex cards ── */
  .srediste-content {
    gap: 32px;
  }
  .srediste-subtitle {
    margin-bottom: 12px;
  }
  .srediste-right h3 {
    margin-bottom: 16px;
  }
  .btn-kontakt {
    width: auto;
    margin-top: 24px;
  }
  .mobile-hex-grid {
    gap: 10px;
    margin: 24px 0;
  }
  .mobile-hex-grid .hex-badge {
    min-height: 100px;
    padding: 16px 12px;
    border-radius: 12px;
  }
  .mobile-hex-grid .hex-number {
    font-size: 1.55rem;
    margin-bottom: 6px;
  }
  .mobile-hex-grid .hex-text {
    letter-spacing: 0.04em;
  }

  /* ── PORTFOLIO: cards & grid ── */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .templates-title {
    margin-bottom: 28px;
  }
  .portfolio-card {
    padding: 10px 10px 50px;
    border-radius: 12px;
  }
  .card-image-wrapper img {
    height: 200px;
    object-fit: cover;
  }  
  
  .glass-pocket {
    height: 40px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 0 14px;
    border-radius: 8px;
    justify-content: center;
  }
  .glass-author {
    font-size: 0.8rem;
    font-weight: 700;
  }
  .glass-year {
    display: none;
  }
  .portfolio-link {
    height: 40px;
    margin-top: 8px;
    padding: 0 5px;
    justify-content: flex-start;
  }
  .portfolio-link .btn-text {
    font-size: 0;
  }
  .portfolio-link .btn-text::after {
    content: "Pogledaj projekat";
    font-size: 0.85rem;
    margin-right: 4px;
  }
  .portfolio-link .material-symbols-outlined {
    font-size: 20px;
  }
  .portfolio-item-wrapper:nth-child(n + 5) {
    display: none;
  }
  .card-header {
    display: none;
  }

  /* ── TESTIMONIALS: avatar ── */
  .testimonial-author-info p {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .testimonial-avatar {
    width: 36px;
    height: 36px;
  }

  /* ── CONTACT: form ── */
  #contactUs .contact-form-card {
    padding: 24px 0 48px;
  }
  #contactUs .contact-right-header {
    padding: 0;
  }
  #contactUs .contact-form {
    gap: 20px;
  }
  #contactUs .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #contactUs .form-group {
    margin-bottom: 0;
  }
  #contactUs .contact-form input[type="text"],
  #contactUs .contact-form input[type="email"],
  #contactUs .contact-form input[type="tel"],
  #contactUs .contact-form textarea,
  #contactUs .custom-select {
    font-size: 0.82rem;
    padding: 8px 0;
  }
  #contactUs .submit-btn,
  #contactUs .contact-submit-btn {
    height: 44px;
    font-size: 0.95rem;
    width: 100%;
  }

  /* ── CONTACT: footer emails ── */
  #contactUs .contact-footer {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding: 0;
  }
  #contactUs .contact-footer-item {
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  #contactUs .cf-label {
    font-size: 0.8rem;
  }


  /* ── FEATURES: gaps & icons ── */
  #features .features-container {
    gap: 48px;
  }
  #features .feature-row,
  #features .feature-row.reverse {
    gap: 24px;
  }
  #features .feature-icons {
    gap: 8px;
  }
  #features .security-card {
    padding: 24px 16px;
    gap: 16px;
  }
  #features .feature-icon-badge {
    width: 42px;
    height: 42px;
  }
  #features .feature-icon-badge .material-symbols-outlined {
    font-size: 20px;
  }

  /* ── SREDISTE POSLOVANJA: hex cards ── */
  .srediste-content {
    gap: 32px;
  }
  .srediste-subtitle {
    margin-bottom: 12px;
  }
  .srediste-right h3 {
    margin-bottom: 16px;
  }
  .btn-kontakt {
    width: auto;
    margin-top: 24px;
  }
  .mobile-hex-grid {
    gap: 10px;
    margin: 24px 0;
  }
  .mobile-hex-grid .hex-badge {
    min-height: 100px;
    padding: 16px 12px;
    border-radius: 12px;
  }
  .mobile-hex-grid .hex-number {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }
  .mobile-hex-grid .hex-text {
    letter-spacing: 0.04em;
  }

  /* ── PORTFOLIO: cards & grid ── */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .templates-title {
    margin-bottom: 28px;
  }
  .portfolio-card {
    padding: 10px 10px 50px;
    border-radius: 12px;
  }
  .card-image-wrapper img {
    height: 200px;
    object-fit: cover;
  }  
  
  .glass-pocket {
    height: 40px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 0 14px;
    border-radius: 8px;
    justify-content: center;
  }
  .glass-author {
    font-size: 0.8rem;
    font-weight: 700;
  }
  .glass-year {
    display: none;
  }
  .portfolio-link {
    height: 40px;
    margin-top: 8px;
    padding: 0 5px;
    justify-content: flex-start;
  }
  .portfolio-link .btn-text {
    font-size: 0;
  }
  .portfolio-link .btn-text::after {
    content: "Pogledaj projekat";
    font-size: 0.85rem;
    margin-right: 4px;
  }
  .portfolio-link .material-symbols-outlined {
    font-size: 20px;
  }
  .portfolio-item-wrapper:nth-child(n + 5) {
    display: none;
  }
  .card-header {
    display: block;
    margin-bottom: 8px !important;
  }
  .card-header p {
    display: none;
  }

  /* ── TESTIMONIALS: avatar ── */
  .testimonial-author-info p {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .testimonial-avatar {
    width: 36px;
    height: 36px;
  }

  /* ── CONTACT: form ── */
  #contactUs .contact-form-card {
    padding: 24px 0 48px;
  }
  #contactUs .contact-right-header {
    padding: 0;
  }
  #contactUs .contact-form {
    gap: 20px;
  }
  #contactUs .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #contactUs .form-group {
    margin-bottom: 0;
  }
  #contactUs .contact-form input[type="text"],
  #contactUs .contact-form input[type="email"],
  #contactUs .contact-form input[type="tel"],
  #contactUs .contact-form textarea,
  #contactUs .custom-select {
    font-size: 0.82rem;
    padding: 8px 0;
  }
  #contactUs .submit-btn,
  #contactUs .contact-submit-btn {
    height: 44px;
    font-size: 0.85rem;
    width: 100%;
  }

  /* ── CONTACT: footer emails ── */
  #contactUs .contact-footer {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding: 0;
  }
  #contactUs .contact-footer-item {
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  #contactUs .cf-label {
    font-size: 0.8rem;
  }
  #contactUs .cf-link {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .templates-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 361px) and (max-width: 430px) {
  .card-image-wrapper img {
    height: 160px;
  }
}

@media (max-width: 1023px) {
  .waves-container {
    height: 15vh;
    min-height: 100px;
  }
}

@media (max-width: 767px) {
  .waves-container {
    height: 10vh;
    min-height: 70px;
  }
}

@media (max-width: 499px) {
  .waves-container {
    height: 8vh;
    min-height: 45px;
  }
}
