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

:root {
  /* Dimenzije gumba "Saznaj više" u uslugama – OVDJE MIJENJAŠ VRIJEDNOSTI */
  --service-cta-width: 220px;
  --service-cta-height: 40px;
  --service-cta-font-size: 12px;
}

html {
  height: 100%; /* Ensure full height for background */
  scrollbar-width: thin; /* Show thin scrollbar in Firefox */
  scrollbar-color: #C0C0C0 #0F172A; /* Silver thumb, dark track */
  background-color: #020617; /* Prevent white gaps */
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  width: 100%;
  min-height: 100%; /* Expand to fit content */
  overflow-x: hidden;
}

/* Unified Background on Body */
body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
  position: relative; /* referentni kontekst za svjetlo */
  background-color: #020617;
  /* Deep Navy Gradient removed to fix grey bars issue */
  background-image: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html:not([data-theme="dark"]) body {
  background-color: #c3c3c3;
  color: #111827;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #c3c3c3;
  background: rgba(255, 255, 255, 0.35);
  color: #111827;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.25s ease;
}

/* Global Page Transition Styles */
body.is-transitioning .page-wrap {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-wrap {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  /* Ensure it has a layer for transform */
  will-change: opacity, transform;
}

.theme-toggle:hover {
  border-color: #111827;
  background: #111827;
  color: #cfcfcf;
}

html[data-theme="dark"] .theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: #a855f7;
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: #a855f7;
  background: #a855f7;
  color: #020617;
}

 .right-rail-header {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 12px;
  background: transparent;
  transition: all 0.3s ease;
  overflow: visible;
 }

 /* Removed ::before glow effect - no longer needed without border */ 

 /* Removed ::after glow effect - no longer needed without border */ 

 .right-rail-header__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
 }

 .right-rail-header__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
 }

 .right-rail-social-link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
 }

 .right-rail-social-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: filter 0.3s ease, transform 0.3s ease, stroke 0.3s ease;
 }

 .right-rail-social-link:hover {
  transform: translateY(-2px);
 }

 .right-rail-social-link:hover svg {
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px rgba(248, 250, 252, 0.8));
 }

 html:not([data-theme="dark"]) .right-rail-social-link {
  color: rgba(17, 24, 39, 0.8);
}

 /* Overrides for existing hamburger/nav CSS when placed inside the right rail */
 .right-rail-header .hamburger {
  position: relative;
  top: auto;
  left: auto;
  z-index: 10011;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, border-color, box-shadow;
 }

 .right-rail-header .hamburger span {
  width: 24px;
  height: 2px;
  display: block;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.3s ease;
  transform-origin: center;
 }

 .right-rail-header .hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
 }

 .right-rail-header .hamburger.active span:nth-child(2) {
  opacity: 0;
 }

 .right-rail-header .hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
 }

 .right-rail-header .hamburger:focus,
 .right-rail-header .hamburger:focus-visible {
  outline: none;
 }

 .right-rail-header .hamburger::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.95) 0%,
    rgba(192, 192, 192, 0.85) 50%,
    rgba(248, 250, 252, 0.95) 100%
  );
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .right-rail-header .hamburger::after {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(248, 250, 252, 0.6) 0%,
    rgba(192, 192, 192, 0.4) 30%,
    transparent 70%
  );
  opacity: 0;
  filter: blur(30px);
  z-index: -2;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .right-rail-header .hamburger:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: scale(1.08);
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 
    0 0 30px rgba(248, 250, 252, 0.6),
    0 0 60px rgba(192, 192, 192, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
 }

 .right-rail-header .hamburger:hover::before {
  opacity: 0.12;
  animation: hamburger-shimmer 2s ease-in-out infinite;
 }

 .right-rail-header .hamburger:hover::after {
  opacity: 1;
  filter: blur(35px);
 }

 .right-rail-header .hamburger:hover span {
  background: #fff;
 }

 .right-rail-header .hamburger:active {
  transform: scale(0.95);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 20px rgba(248, 250, 252, 0.4),
    0 0 40px rgba(192, 192, 192, 0.2),
    inset 0 0 25px rgba(255, 255, 255, 0.15);
 }

 .right-rail-header .hamburger:active::after {
  opacity: 0.7;
  filter: blur(20px);
 }

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

 
 /* Removed conflicting nav-overlay styles to allow hamburger.css to handle fullscreen radial menu */
/*
.right-rail-header .nav-overlay {
  position: absolute;
  top: 31px;
  left: auto;
  right: 31px;
  transform: translateY(-50%);
  z-index: 10002;
}
*/

 @media (max-width: 900px) {
  .right-rail-header {
    top: 20px;
    right: 16px;
    transform: none;
    padding: 10px 10px;
    gap: 10px;
  }

  .right-rail-header__social {
    display: none;
  }
 }

/* Custom Scrollbar - White with Glow Effect */
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFFFFF, #E8E8E8);
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.3);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFFFFF, #F5F5F5);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Scroll indicator removed - using native scrollbar only */
.scroll-indicator {
  display: none;
}

.scroll-indicator--visible {
  display: none;
}

.scroll-indicator__thumb {
  display: none;
}

.scroll-indicator--visible .scroll-indicator__thumb {
  display: none;
}

body:not(.project-detail-page):not(.service-detail-page):not(.about-story-page):not(.article-detail-page)::before {
  content: "";
  position: absolute; /* više nije sticky na viewport, nego stoji na vrhu stranice */
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1380px;
  height: 620px; /* iste dimenzije kao prije */
  pointer-events: none;
  background: none;
  z-index: 0;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ===== LUXURY ORBITAL ECOSYSTEM ===== */
/* Mathematical Precision: Golden Ratio Positioning */

/* Logo Panel - Orbital Position 1 (315° - Top-Left Quadrant) */
.hero-panel-logo {
  position: absolute;
  top: 18%;
  left: 12%;
  width: 200px;
  height: 200px;
  z-index: 20;
  transform: translateZ(0);
  animation: orbitalFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(168, 85, 247, 0.3));
}

.logo-container {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: logoRotate 20s linear infinite;
}

.logo-container:hover .logo-glow-ring {
  animation-duration: 8s;
}

.logo-glow-ring-1 {
  width: 120px;
  height: 120px;
  border-color: rgba(168, 85, 247, 0.3);
  animation-duration: 25s;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.logo-glow-ring-2 {
  width: 100px;
  height: 100px;
  border-color: rgba(168, 85, 247, 0.5);
  animation-duration: 18s;
  animation-direction: reverse;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.logo-glow-ring-3 {
  width: 140px;
  height: 140px;
  border-color: rgba(168, 85, 247, 0.2);
  animation-duration: 30s;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.logo-core {
  position: relative;
  z-index: 3;
  width: 80px;
  height: 80px;
  background: rgba(2, 6, 23, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(168, 85, 247, 0.4);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.4),
    inset 0 0 20px rgba(168, 85, 247, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo-core:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 
    0 0 50px rgba(168, 85, 247, 0.6),
    inset 0 0 30px rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.7);
}

.premium-logo {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
  transition: all 0.4s ease;
}

.logo-core:hover .premium-logo {
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
  transform: scale(1.1);
}

.logo-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #a855f7, transparent);
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite;
}

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

.particle-2 {
  top: 70%;
  right: 20%;
  animation-delay: 2s;
}

.particle-3 {
  bottom: 30%;
  left: 80%;
  animation-delay: 4s;
}

.particle-4 {
  top: 40%;
  right: 10%;
  animation-delay: 1s;
}

.logo-label {
  margin-top: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(168, 85, 247, 0.9);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Navigation Button - Orbital Position 2 (45° - Top-Right Quadrant) */
.hero-panel-nav-trigger {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 160px;
  height: 160px;
  z-index: 20;
  transform: translateZ(0);
  animation: orbitalFloat 8s ease-in-out infinite reverse;
  animation-delay: -2s;
  filter: drop-shadow(0 8px 32px rgba(168, 85, 247, 0.25));
}

.luxury-nav-button {
  position: relative;
  width: 80px;
  height: 80px;
  background: rgba(2, 6, 23, 0.95);
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.3),
    inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.luxury-nav-button:hover {
  transform: scale(1.05) rotate(5deg);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 
    0 0 50px rgba(168, 85, 247, 0.5),
    inset 0 0 30px rgba(168, 85, 247, 0.2);
}

.nav-button-rings {
  position: absolute;
  width: 100%;
  height: 100%;
}

.nav-ring {
  position: absolute;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: logoRotate 15s linear infinite;
}

.nav-ring-1 {
  width: 100px;
  height: 100px;
  top: -10px;
  left: -10px;
  animation-duration: 20s;
}

.nav-ring-2 {
  width: 120px;
  height: 120px;
  top: -20px;
  left: -20px;
  animation-duration: 25s;
  animation-direction: reverse;
}

.nav-button-core {
  position: relative;
  z-index: 2;
}

.nav-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.nav-line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.nav-line-1 {
  width: 20px;
}

.nav-line-2 {
  width: 24px;
}

.nav-line-3 {
  width: 16px;
}

.luxury-nav-button:hover .nav-line {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
  background: linear-gradient(90deg, #ec4899, #a855f7);
}

body.nav-open .nav-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
  width: 24px;
}

body.nav-open .nav-line-2 {
  opacity: 0;
  transform: scaleX(0);
}

body.nav-open .nav-line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 24px;
}

.nav-button-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.nav-trigger-label {
  margin-top: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(168, 85, 247, 0.8);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* Terminal Status - Orbital Position 3 (180° - Pure Left) */
.hero-panel-circle-left {
  position: absolute;
  top: 50%;
  left: 3%;
  transform: translateY(-50%) translateZ(0);
  z-index: 18;
  animation: orbitalPulse 6s ease-in-out infinite;
  animation-delay: -1s;
  filter: drop-shadow(0 12px 40px rgba(34, 197, 94, 0.4));
}

/* Metrics Card - Orbital Position 4 (0° - Pure Right) */
.hero-panel-circle-right {
  position: absolute;
  top: 50%;
  right: 3%;
  transform: translateY(-50%) translateZ(0);
  z-index: 18;
  animation: orbitalGlow 7s ease-in-out infinite;
  animation-delay: -3s;
  filter: drop-shadow(0 12px 40px rgba(59, 130, 246, 0.4));
}

/* Projects Counter - Orbital Position 5 (225° - Bottom-Left Quadrant) */
.hero-panel-circle-bottom-left {
  position: absolute;
  bottom: 18%;
  left: 12%;
  z-index: 19;
  transform: translateZ(0);
  animation: orbitalFloat 9s ease-in-out infinite;
  animation-delay: -4s;
  filter: drop-shadow(0 12px 40px rgba(249, 115, 22, 0.4));
}

/* Quote Section - Orbital Position 6 (135° - Bottom-Right Quadrant) */
.hero-panel-circle-bottom-right {
  position: absolute;
  bottom: 18%;
  right: 12%;
  z-index: 19;
  transform: translateZ(0);
  animation: orbitalFloat 8.5s ease-in-out infinite;
  animation-delay: -6s;
  filter: drop-shadow(0 12px 40px rgba(236, 72, 153, 0.4));
}

/* ========================================
   COMMAND HUD & NAVIGATION FIELD
   ======================================== */

.fullscreen-nav__hud-container {
  position: relative;
  width: min(1200px, 90vw);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
  z-index: 3;
}

.nav-field {
  position: relative;
  height: 60vh;
  width: 100%;
  display: block; /* Changed from grid to block for absolute positioning */
  --nav-bg-opacity: 0;
}

/* Subtle HUD Diagonal Flow Background */
.nav-field::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: linear-gradient(
    45deg,
    rgba(168, 85, 247, 0.012) 0%,
    transparent 25%,
    rgba(236, 72, 153, 0.008) 50%,
    transparent 75%,
    rgba(168, 85, 247, 0.012) 100%
  );
  background-size: 200% 200%;
  /* Animation disabled by default - will be enabled after intro */
  animation: none;
  opacity: var(--nav-bg-opacity);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  will-change: transform;
}

.nav-bg-noise {
  position: absolute;
  inset: -15%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: calc(0.03 * var(--nav-bg-opacity));
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  /* Animation disabled by default - will be enabled after intro */
  animation: none;
}

.nav-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 150px,
      rgba(168, 85, 247, 0.01) 151px,
      rgba(168, 85, 247, 0.01) 152px,
      transparent 153px,
      transparent 300px
    ),
    linear-gradient(
      60deg,
      transparent 0%,
      rgba(168, 85, 247, 0.015) 45%,
      rgba(255, 255, 255, 0.01) 50%,
      rgba(168, 85, 247, 0.015) 55%,
      transparent 100%
    );
  background-size: 100% 100%, 300% 300%;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  /* Animation disabled by default - will be enabled after intro */
  animation: none;
  opacity: var(--nav-bg-opacity);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

@keyframes hudRaySweep {
  0% { background-position: 0% 0%, 100% 100%; }
  50% { background-position: 0% 0%, 0% 0%; }
  100% { background-position: 0% 0%, -100% -100%; }
}

@keyframes hudDiagonalFlow {
  0% { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}

@keyframes hudScanLines {
  0% { transform: translate(-5%, 5%); }
  100% { transform: translate(5%, -5%); }
}


/* Focus darkening layer removed from hud-container - now on parent */

@media (min-width: 1025px) {
  /* Intentional Hover: Pause all orchestrated motion when any node is hovered */
  .fullscreen-nav:has(.nav-node:hover) .nav-field::before {
    animation-play-state: paused;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fullscreen-nav:has(.nav-node:hover) .nav-field::after {
    animation-play-state: paused;
  }
  
  .fullscreen-nav:has(.nav-node:hover) .nav-bg-noise {
    animation-play-state: paused;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .fullscreen-nav:has(.nav-node:hover) .nav-node {
    animation-play-state: paused;
  }
  
  .fullscreen-nav:has(.nav-node:hover) .nav-cta {
    animation-play-state: paused;
  }
  
  .fullscreen-nav:has(.nav-node:hover) .status-dot,
  .fullscreen-nav:has(.nav-node:hover) .encrypted-dot {
    animation-play-state: paused;
  }

  /* Focus Mode: Darken full viewport background when any node is hovered */
  .fullscreen-nav:has(.nav-node:hover)::after {
    opacity: 1;
  }

  .fullscreen-nav:has(.nav-node:hover)::before {
    opacity: 0.01; /* Even fainter noise during focus */
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Focus Mode: Dim other nodes more significantly */
  .nav-field:has(.nav-node:hover) .nav-node:not(:hover) {
    opacity: 0.3; /* Increased dimming from 0.4 to 0.3 */
    filter: grayscale(0.2);
    transform: scale(0.96);
  }

  /* Focus Mode: Hovered node prominence with dramatically increased glow */
  .nav-node:hover {
    border-color: rgba(168, 85, 247, 0.9); /* Increased to 0.9 for stronger presence */
    background: rgba(255, 255, 255, 0.15); /* Increased brightness */
    box-shadow: 
      0 20px 50px rgba(0, 0, 0, 0.4), /* Deeper shadow */
      0 0 60px rgba(168, 85, 247, 0.7), /* Much stronger glow */
      0 0 30px rgba(168, 85, 247, 0.4), /* Additional inner glow */
      inset 0 1px 1px rgba(255, 255, 255, 0.25);
    z-index: 10;
    opacity: 1;
    transform: scale(1.02); /* Subtle scale increase for prominence */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Hovered node aura enhancement - much stronger */
  .nav-node:hover .node-aura {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 0.1) 50%, transparent 80%);
    transform: scale(1.2); /* Expand aura for more presence */
  }
  
  /* Enhanced text glow on hover */
  .nav-node:hover .node-title {
    text-shadow: 
      0 0 20px rgba(168, 85, 247, 0.6),
      0 0 40px rgba(168, 85, 247, 0.3);
  }
  
  .nav-node:hover .node-subtitle {
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  }
  
  /* All nodes have same default intensity */
}

/* Constellation Layout - Soft Diagonal Flow */
/* Based on golden ratio (1.618) and consistent 120px spacing units */

.nav-node-wrapper {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

/* Početna - Central anchor point */
.nav-node-wrapper:nth-child(1) { 
  top: 48%; 
  left: 28%; 
  transform: translate(-50%, -50%);
}

/* Usluge - Lower left, following diagonal flow */
.nav-node-wrapper:nth-child(2) { 
  top: 78%; 
  left: 12%; 
  transform: translate(-50%, -50%);
}

/* Portfolio - Upper right, diagonal opposite */
.nav-node-wrapper:nth-child(3) { 
  top: 28%; 
  left: 58%; 
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* O nama - Lower center, completing triangle */
.nav-node-wrapper:nth-child(4) { 
  top: 78%; 
  left: 45%; 
  transform: translate(-50%, -50%);
}

/* Kontakt - Upper right corner, closest to Command Panel */
.nav-node-wrapper:nth-child(5) { 
  top: 12%; 
  left: 82%; 
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Kontakt node - visible like all other nodes */

.nav-node {
  position: relative;
  display: block;
  padding: 24px 44px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: transform, opacity;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0);
  opacity: 0.7;
  animation: cardFloat 6s ease-in-out infinite;
}

/* Gentle floating animation for cards */
@keyframes cardFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

/* Pulsing glow animation for card auras */
@keyframes auraPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Phase-shifted floating for each node */
.nav-node[data-node-id="home"] {
  animation-delay: 0s;
  animation-duration: 6s;
}

.nav-node[data-node-id="services"] {
  animation-delay: 1.2s;
  animation-duration: 6.5s;
}

.nav-node[data-node-id="portfolio"] {
  animation-delay: 2.4s;
  animation-duration: 7s;
}

.nav-node[data-node-id="about"] {
  animation-delay: 3.6s;
  animation-duration: 6.2s;
}

.nav-node[data-node-id="contact"] {
  animation-delay: 4.8s;
  animation-duration: 6.8s;
}

.node-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1), transparent 70%);
  opacity: 0;
  animation: auraPulse 4s ease-in-out infinite;
  transition: opacity 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Micro Previews */
.node-preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.nav-node:hover .node-preview {
  opacity: 1;
}

.nav-node-wrapper:has(.nav-node:hover) .node-preview {
  opacity: 1;
}

/* Card Preview Base Styles */
.node-preview--portfolio,
.node-preview--home,
.node-preview--services,
.node-preview--about,
.node-preview--contact {
  perspective: 1000px;
}

.preview-card {
  position: absolute;
  width: 100px;
  height: 60px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 4px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Home (Početna) - Vertical stack */
.node-preview--home .preview-card--1 { transform: translate(0px, -30px) rotate(-5deg) translateZ(-30px); }
.node-preview--home .preview-card--2 { transform: translate(0px, 0px) rotate(0deg) translateZ(-20px); }
.node-preview--home .preview-card--3 { transform: translate(0px, 30px) rotate(5deg) translateZ(-40px); }

.nav-node-wrapper:has(.nav-node:hover) .node-preview--home .preview-card--1 { transform: translate(0px, -50px) rotate(-8deg) translateZ(-15px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--home .preview-card--2 { transform: translate(0px, 0px) rotate(0deg) translateZ(-10px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--home .preview-card--3 { transform: translate(0px, 50px) rotate(8deg) translateZ(-25px); }

/* Services (Usluge) - Horizontal spread */
.node-preview--services .preview-card--1 { transform: translate(-40px, 0px) rotate(-12deg) translateZ(-35px); }
.node-preview--services .preview-card--2 { transform: translate(0px, 0px) rotate(0deg) translateZ(-20px); }
.node-preview--services .preview-card--3 { transform: translate(40px, 0px) rotate(12deg) translateZ(-35px); }

.nav-node-wrapper:has(.nav-node:hover) .node-preview--services .preview-card--1 { transform: translate(-65px, 0px) rotate(-18deg) translateZ(-15px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--services .preview-card--2 { transform: translate(0px, 0px) rotate(0deg) translateZ(-10px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--services .preview-card--3 { transform: translate(65px, 0px) rotate(18deg) translateZ(-15px); }

/* Portfolio - Diagonal cascade (original) */
.node-preview--portfolio .preview-card--1 { transform: translate(-20px, -15px) rotate(-10deg) translateZ(-40px); }
.node-preview--portfolio .preview-card--2 { transform: translate(15px, 10px) rotate(5deg) translateZ(-20px); }
.node-preview--portfolio .preview-card--3 { transform: translate(-5px, 0px) rotate(2deg) translateZ(-60px); }

.nav-node-wrapper:has(.nav-node:hover) .node-preview--portfolio .preview-card--1 { transform: translate(-55px, -35px) rotate(-15deg) translateZ(-20px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--portfolio .preview-card--2 { transform: translate(45px, 25px) rotate(10deg) translateZ(-10px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--portfolio .preview-card--3 { transform: translate(-25px, 15px) rotate(5deg) translateZ(-40px); }

/* About (O nama) - Circular arrangement */
.node-preview--about .preview-card--1 { transform: translate(-25px, -20px) rotate(-15deg) translateZ(-30px); }
.node-preview--about .preview-card--2 { transform: translate(25px, -20px) rotate(15deg) translateZ(-30px); }
.node-preview--about .preview-card--3 { transform: translate(0px, 15px) rotate(0deg) translateZ(-50px); }

.nav-node-wrapper:has(.nav-node:hover) .node-preview--about .preview-card--1 { transform: translate(-45px, -35px) rotate(-20deg) translateZ(-15px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--about .preview-card--2 { transform: translate(45px, -35px) rotate(20deg) translateZ(-15px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--about .preview-card--3 { transform: translate(0px, 30px) rotate(0deg) translateZ(-30px); }

/* Contact (Kontakt) - Staggered offset */
.node-preview--contact .preview-card--1 { transform: translate(-30px, -10px) rotate(-8deg) translateZ(-45px); }
.node-preview--contact .preview-card--2 { transform: translate(0px, 5px) rotate(3deg) translateZ(-25px); }
.node-preview--contact .preview-card--3 { transform: translate(30px, -5px) rotate(8deg) translateZ(-35px); }

.nav-node-wrapper:has(.nav-node:hover) .node-preview--contact .preview-card--1 { transform: translate(-60px, -20px) rotate(-12deg) translateZ(-20px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--contact .preview-card--2 { transform: translate(0px, 10px) rotate(5deg) translateZ(-10px); }
.nav-node-wrapper:has(.nav-node:hover) .node-preview--contact .preview-card--3 { transform: translate(60px, -10px) rotate(12deg) translateZ(-15px); }

/* Usluge Preview: Silhouette Icons */
.node-preview--services {
  gap: 15px;
}

.preview-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(168, 85, 247, 0.03);
  position: relative;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: inherit;
}

.nav-node-wrapper:has(.nav-node:hover) .preview-icon {
  transform: translateY(-8px) scale(1.1);
  background: rgba(168, 85, 247, 0.08);
}

.nav-node-wrapper:has(.nav-node:hover) .preview-icon--code { transition-delay: 0.1s; }
.nav-node-wrapper:has(.nav-node:hover) .preview-icon--perf { transition-delay: 0.2s; }

/* O Nama Preview: Timeline Dots & Silhouette */
.node-preview--about {
  gap: 12px;
}

.preview-silhouette {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 50% 50% 0 0;
  background: linear-gradient(transparent, rgba(168, 85, 247, 0.05));
  bottom: 20%;
  opacity: 0.5;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-node-wrapper:has(.nav-node:hover) .preview-dot {
  transform: scale(1.8) translateY(-10px);
  background: rgba(236, 72, 153, 0.3);
}

.nav-node-wrapper:has(.nav-node:hover) .preview-silhouette {
  transform: scale(1.2) translateY(-5px);
  opacity: 0.8;
}

.nav-node-wrapper:has(.nav-node:hover) .preview-dot:nth-child(2) { transition-delay: 0.1s; }
.nav-node-wrapper:has(.nav-node:hover) .preview-dot:nth-child(3) { transition-delay: 0.2s; }

/* Kontakt Preview: Glow */
.node-preview--contact .preview-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  filter: blur(12px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.nav-node-wrapper:has(.nav-node:hover) .preview-glow {
  transform: scale(1.6);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
}

.nav-node:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(168, 85, 247, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  opacity: 1; /* Full intensity for hovered node */
}

/* All nodes use default styling */

/* Tactile Click Interaction */
.nav-node.is-clicking {
  border-color: rgba(168, 85, 247, 0.8);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.4),
    0 0 10px rgba(168, 85, 247, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.04s linear !important;
}

.nav-node:hover .node-aura {
  opacity: 1;
}

.node-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.node-title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7); /* Reduced default intensity */
  margin-bottom: 4px;
  letter-spacing: 0.1em;
  transition: all 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.node-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: rgba(168, 85, 247, 0.5); /* Reduced default intensity */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

/* All node text uses default styling */

.nav-node:hover .node-title {
  color: #fff;
  letter-spacing: 0.3em;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.nav-node:hover .node-subtitle {
  color: rgba(168, 85, 247, 1);
  letter-spacing: 0.5em;
}

/* Connection SVG - Re-enabled for hover connection lines */
.nav-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.network-line {
  stroke: rgba(168, 85, 247, 0.6);
  stroke-width: 2;
  fill: none;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.network-line-ghost {
  stroke: rgba(168, 85, 247, 0.3);
  stroke-width: 8;
  fill: none;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes neuralPulse {
  0%, 100% { 
    stroke-opacity: 0.6; 
    stroke-width: 1;
  }
  25% { 
    stroke-opacity: 0.8; 
    stroke-width: 1.2;
  }
  50% { 
    stroke-opacity: 0.4; 
    stroke-width: 0.8;
  }
  75% { 
    stroke-opacity: 0.9; 
    stroke-width: 1.1;
  }
}

@keyframes ghostBreath {
  0%, 100% { 
    stroke-opacity: 0.3; 
    stroke-width: 4;
  }
  50% { 
    stroke-opacity: 0.1; 
    stroke-width: 6;
  }
}

@keyframes lineFlow {
  0% { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.network-line.active {
  opacity: 1;
  animation: lineFlow 1.2s ease-out forwards;
}

.network-line-ghost.active {
  opacity: 1;
}

/* Data stream particles */
.data-particle {
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 1));
}

@keyframes activeNeural {
  0%, 100% { 
    stroke-opacity: 0.7; 
    stroke-width: 6;
    stroke-width: 2;
  }
  50% { 
    stroke-opacity: 1; 
    stroke-width: 2.5;
  }
}

@keyframes activeGhost {
  0%, 100% { 
    stroke-opacity: 0.2; 
    stroke-width: 8;
  }
  50% { 
    stroke-opacity: 0.4; 
    stroke-width: 12;
  }
}

/* Right Side HUD Panel */
.nav-side-hud {
  position: relative;
}

.side-hud-glass {
  padding: 48px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 32px;
  will-change: transform;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.05);
  position: relative;
  overflow: hidden;
}

.side-hud-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
  animation: scanningLine 6s linear infinite;
  display: none;
}

@keyframes scanningLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(500%); }
}

.side-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.side-hud-label {
  font-size: 11px;
  font-family: 'Space Grotesk', monospace;
  color: rgba(168, 85, 247, 0.8);
  letter-spacing: 0.4em;
  font-weight: 600;
  text-transform: uppercase;
}

.side-hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  /* Animation disabled by default - will be enabled after intro */
  animation: none;
}

.status-text {
  font-size: 9px;
  color: #4ade80;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.encrypted-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  /* Animation disabled by default - will be enabled after intro */
  animation: none;
}

@keyframes encryptedPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 10px #4ade80; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Section Dots and Remaining Nav Rail Styles moved to consolidated section below */

@media (max-width: 1024px) {
  .fullscreen-nav__hud-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
  
  .nav-side-hud {
    display: none;
  }
  
  .nav-field {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 16px;
    padding-bottom: 20px;
  }

  /* Mobile: Reset constellation to vertical stack */
  .nav-node-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    transform: none !important;
  }

  .nav-node {
    width: 100%;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .nav-node:hover {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .nav-node:active {
    background: rgba(168, 85, 247, 0.1);
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
  
  /* Mobile: Show Kontakt node always */
  .nav-node-wrapper:has([data-node-id="contact"]) {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
 
  .node-title {
    font-size: 20px;
    letter-spacing: 0.2em;
  }

  .nav-side-hud {
    width: 100%;
    margin-top: 10px;
    padding-bottom: 40px;
  }

  .side-hud-glass {
    padding: 32px 24px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.6);
  }

  .nav-network-svg {
    display: none;
  }
}

@media (max-width: 480px) {
  .fullscreen-nav__hud-container {
    padding: 90px 16px 40px;
  }

  .nav-node {
    padding: 20px 16px;
  }

  .node-title {
    font-size: 18px;
  }

  .side-hud-glass {
    padding: 24px 20px;
  }
}

.fullscreen-nav__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 80px 40px 40px;
  position: relative;
}

.nav-links-main {
  display: none;
}

.nav-footer {
  margin-top: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.4s;
}

body.nav-open .nav-footer {
  opacity: 1;
  transform: translateY(0);
}

 .nav-footer,
 .availability-info {
   display: none;
 }

 .nav-side {
   width: 100%;
   display: flex;
   flex-direction: column;
   gap: 18px;
   padding: 18px;
   border-radius: 22px;
   background: rgba(15, 23, 42, 0.65);
   border: 1px solid rgba(168, 85, 247, 0.18);
   backdrop-filter: blur(22px) saturate(180%);
   box-shadow:
     0 18px 54px rgba(0, 0, 0, 0.45),
     inset 0 1px 0 rgba(255, 255, 255, 0.06);
   opacity: 0;
   transform: translateY(18px);
   transition: opacity 0.35s ease 0.25s, transform 0.35s ease 0.25s;
 }

 body.nav-open .nav-side {
   opacity: 1;
   transform: translateY(0);
 }

 .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1020;
  background: linear-gradient(120deg, #a855f7, #ec4899, #a855f7);
  background-size: 200% auto;
  box-shadow: 0 18px 60px rgba(168, 85, 247, 0.22);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* Animation disabled by default - will be enabled after intro */
  animation: none;
}

@keyframes ctaWave {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

 .nav-cta:hover {
   transform: translateY(-1px);
   box-shadow: 0 22px 70px rgba(168, 85, 247, 0.3);
 }

 .nav-cta:focus-visible {
   outline: none;
   box-shadow:
     0 0 0 4px rgba(168, 85, 247, 0.25),
     0 0 0 1px rgba(168, 85, 247, 0.6),
     0 22px 70px rgba(168, 85, 247, 0.28);
 }

 .nav-contact__label {
   font-size: 11px;
   letter-spacing: 0.16em;
   text-transform: uppercase;
   color: rgba(226, 232, 240, 0.62);
   margin-bottom: 8px;
 }

 .nav-contact__item {
   display: block;
   color: rgba(248, 250, 252, 0.88);
   text-decoration: none;
   font-size: 14px;
   padding: 8px 10px;
   border-radius: 12px;
   border: 1px solid rgba(148, 163, 184, 0.18);
   background: rgba(2, 6, 23, 0.35);
   transition: border-color 0.25s ease, transform 0.25s ease;
 }

 .nav-contact__item:hover {
   border-color: rgba(168, 85, 247, 0.35);
   transform: translateY(-1px);
 }

 .nav-contact__item:focus-visible {
   outline: none;
   box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
 }

 .nav-social {
   display: flex;
   gap: 10px;
   padding-top: 6px;
 }

 .nav-social__item {
   width: 44px;
   height: 44px;
   display: grid;
   place-items: center;
   border-radius: 999px;
   border: 1px solid rgba(168, 85, 247, 0.18);
   background: rgba(2, 6, 23, 0.35);
   color: rgba(226, 232, 240, 0.9);
   text-decoration: none;
   transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .nav-social__item:hover {
   transform: translateY(-1px);
   border-color: rgba(168, 85, 247, 0.42);
   box-shadow: 0 0 26px rgba(168, 85, 247, 0.2);
 }

 .nav-social__item:focus-visible {
   outline: none;
   box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
 }

.availability-info {
  text-align: center;
}

.availability-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.availability-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.availability-slot {
  font-size: 14px;
  color: rgba(168, 85, 247, 0.9);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #a855f7, #ec4899);
  color: #050509;
  font-weight: 600;
}

/* ===== ORCHESTRATED ANIMATION SYSTEM ===== */
/* Master Clock: 8-second cycle with cubic-bezier(0.4, 0, 0.6, 1) timing */

:root {
  --master-duration: 8s;
  --master-timing: cubic-bezier(0.4, 0, 0.6, 1);
}

/* HUD Intro Sequence States */
.fullscreen-nav {
  /* Initial state - everything hidden */
  --intro-complete: 0;
}

.fullscreen-nav.intro-complete {
  --intro-complete: 1;
}

/* Ambient animations disabled - keeping navigation simple and clean */

/* Master animation clock - all animations derive from this */
@keyframes masterClock {
  0% { --clock-phase: 0; }
  25% { --clock-phase: 0.25; }
  50% { --clock-phase: 0.5; }
  75% { --clock-phase: 0.75; }
  100% { --clock-phase: 1; }
}

/* Phase-shifted breathing animation for nodes */
@keyframes orchestratedBreathing {
  0%, 100% {
    transform: scale(1) translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.02) translateY(-2px);
    opacity: 0.85;
  }
}

/* Phase-shifted background drift */
@keyframes orchestratedDrift {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(3px, -2px); }
  50% { transform: translate(-1px, -4px); }
  75% { transform: translate(-3px, 2px); }
  100% { transform: translate(0px, 0px); }
}

/* Phase-shifted button wave */
@keyframes orchestratedWave {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Phase-shifted dot pulse */
@keyframes orchestratedPulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.8; 
    box-shadow: 0 0 6px currentColor;
  }
  50% { 
    transform: scale(1.3); 
    opacity: 1; 
    box-shadow: 0 0 12px currentColor;
  }
}


/* ===== RESPONSIVE GEOMETRIC CIRCLE LAYOUT ===== */
@media (max-width: 768px) {
  .hero-panel-logo {
    top: 20%;
    left: 10%;
    width: 140px;
    height: 140px;
  }
  
  .logo-container {
    height: 110px;
  }
  
  .logo-glow-ring-1 {
    width: 90px;
    height: 90px;
  }
  
  .logo-glow-ring-2 {
    width: 75px;
    height: 75px;
  }
  
  .logo-glow-ring-3 {
    width: 105px;
    height: 105px;
  }
  
  .logo-core {
    width: 60px;
    height: 60px;
  }
  
  .premium-logo {
    width: 35px;
  }
  
  .hero-panel-nav-trigger {
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
  }
  
  .luxury-nav-button {
    width: 60px;
    height: 60px;
  }
  
  .nav-ring-1 {
    width: 80px;
    height: 80px;
  }
  
  .nav-ring-2 {
    width: 95px;
    height: 95px;
  }
  
  /* Perfect Circle Positioned Panels Mobile */
  .hero-panel-circle-left {
    left: 2%;
  }
  
  .hero-panel-circle-right {
    right: 2%;
  }
  
  .hero-panel-circle-bottom-left {
    left: 10%;
    bottom: 20%;
  }
  
  .hero-panel-circle-bottom-right {
    right: 10%;
    bottom: 20%;
  }
  
  .nav-link-main {
    font-size: clamp(28px, 8vw, 48px);
  }
  
  .fullscreen-nav__content {
    padding: 60px 20px 30px;
  }
  
  .nav-links-main {
    gap: 24px;
  }

  .fullscreen-nav__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fullscreen-nav__close {
    top: 18px;
    right: 18px;
  }
}

/* Hide close button to remove white line above Kontakt card */
.fullscreen-nav__close {
  display: none;
}

/* Animated Grid Pattern - Tech HUD Background */
.nav-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
  animation: gridDrift 20s linear infinite;
  opacity: 0.6;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating Particles Container */
.nav-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.nav-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent);
  filter: blur(2px);
  animation: particleFloat 15s ease-in-out infinite;
}

.nav-particle:nth-child(1) {
  width: 8px;
  height: 8px;
  top: 20%;
  left: 10%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.nav-particle:nth-child(2) {
  width: 12px;
  height: 12px;
  top: 60%;
  left: 80%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.nav-particle:nth-child(3) {
  width: 6px;
  height: 6px;
  top: 40%;
  left: 30%;
  animation-duration: 16s;
  animation-delay: -8s;
}

.nav-particle:nth-child(4) {
  width: 10px;
  height: 10px;
  top: 80%;
  left: 60%;
  animation-duration: 20s;
  animation-delay: -12s;
}

.nav-particle:nth-child(5) {
  width: 8px;
  height: 8px;
  top: 15%;
  left: 70%;
  animation-duration: 19s;
  animation-delay: -3s;
}

.nav-particle:nth-child(6) {
  width: 14px;
  height: 14px;
  top: 50%;
  left: 20%;
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -40px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, -80px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(40px, -120px) scale(1.1);
    opacity: 0.5;
  }
}


.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #4ade80, #16a34a);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
}

.btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  border: none;
  backdrop-filter: blur(8px);
  box-shadow: none;
  font-size: 15px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e2e8f0;
  padding-inline: 30px;
  font-weight: 700;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

main {
  flex: 1;
  padding-top: 0;
}

/* ========================================
   PREMIUM HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #020617;
}


 .hero {
   --rail-safe-inline: clamp(120px, 14vw, 220px);
   --center-safe-inline: calc(var(--rail-safe-inline) + 110px);
 }

 .hero::after {
   content: '';
   position: absolute;
   inset: 0;
   pointer-events: none;
   z-index: 1;
   background:
     radial-gradient(1200px 700px at 50% 35%, rgba(168, 85, 247, 0.06), transparent 58%),
     radial-gradient(900px 520px at 10% 15%, rgba(236, 72, 153, 0.035), transparent 55%),
     radial-gradient(900px 520px at 90% 85%, rgba(59, 130, 246, 0.03), transparent 60%),
     radial-gradient(1200px 900px at 50% 60%, rgba(0, 0, 0, 0.55), transparent 62%),
     repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 2px, transparent 4px);
   mix-blend-mode: overlay;
   opacity: 0.28;
 }

 .fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #020617;
  z-index: 9998; /* Just below nav-rail (9999) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  overflow: hidden;
}

body.nav-open .fullscreen-nav {
  opacity: 1;
  visibility: visible;
}

.fullscreen-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.fullscreen-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

 .brand-rail {
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: min(320px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}

 .brand-rail__logo {
   display: block;
   text-decoration: none;
   color: inherit;
 }

 .brand-rail__card {
   position: relative;
   background: rgba(15, 23, 42, 0.78);
   backdrop-filter: blur(24px) saturate(180%);
   border: 1px solid rgba(168, 85, 247, 0.18);
   border-radius: 22px;
   box-shadow:
     0 18px 54px rgba(0, 0, 0, 0.42),
     0 2px 10px rgba(168, 85, 247, 0.08),
     inset 0 1px 0 rgba(255, 255, 255, 0.09);
   overflow: hidden;
 }

 .brand-rail__card--logo {
  padding: 12px 4px 10px;
  max-width: 150px;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-rail__card--logo:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 4px 18px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 60px rgba(168, 85, 247, 0.15);
}

.brand-rail__card--logo:hover .logo-glow-ring {
  opacity: 1;
  animation-duration: 12s;
}

.brand-rail__card--logo:hover .logo-core {
  transform: scale(1.08);
  box-shadow: 
    0 0 60px rgba(168, 85, 247, 0.7),
    0 0 100px rgba(168, 85, 247, 0.4);
}

.brand-rail__card--logo:hover .premium-logo {
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.9)) brightness(1.1);
}

.brand-rail__card--logo:hover .logo-label {
  color: rgba(168, 85, 247, 0.95);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

 .brand-rail__card--status {
   padding: 16px 18px;
 }

 .brand-rail__logo .logo-container {
  height: 110px;
  width: 140px;
  margin: 0 auto;
}

 .brand-rail__logo .logo-glow-ring {
   animation-duration: 28s;
   opacity: 0.78;
 }

 .brand-rail__trust {
   font-size: 11px;
   letter-spacing: 0.16em;
   text-transform: uppercase;
   color: rgba(226, 232, 240, 0.6);
   padding-left: 8px;
 }

 .brand-rail__card--status .panel-terminal-header {
   padding-bottom: 12px;
 }

 .brand-rail__card--status .terminal-title {
   font-size: 11px;
   letter-spacing: 0.12em;
   opacity: 0.8;
 }

 .brand-rail__card--status .panel-terminal-body {
   font-size: 12px;
 }

 .brand-rail__card--status .status-text {
   letter-spacing: 0.08em;
 }

 @media (max-width: 768px) {
   .hero {
     min-height: 100svh;
   }

   .hero-premium-container {
     height: auto;
     min-height: 100svh;
     padding-left: 20px;
     padding-right: 20px;
   }

   .hero-center-stage {
     padding: 110px 16px 28px;
   }

   .brand-rail {
     left: 16px;
     right: 16px;
     top: 16px;
     transform: none;
     width: auto;
     max-width: 520px;
     margin: 0 auto;
     gap: 12px;
   }

   .brand-rail__logo .logo-container {
    height: 110px;
  }
 }

/* Premium Background Grid */
.hero-premium-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Luxury Coding Background Effect */
.coding-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.code-line {
  position: absolute;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  color: rgba(168, 85, 247, 0.15);
  white-space: nowrap;
  animation: codeFall linear infinite;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
  top: -200px;
  opacity: 0;
}

.code-line-1 {
  left: 5%;
  animation-duration: 15s;
  animation-delay: 0s;
}

.code-line-2 {
  left: 15%;
  animation-duration: 18s;
  animation-delay: 3s;
}

.code-line-3 {
  left: 25%;
  animation-duration: 12s;
  animation-delay: 6s;
}

.code-line-4 {
  left: 35%;
  animation-duration: 20s;
  animation-delay: 2s;
}

.code-line-5 {
  left: 45%;
  animation-duration: 16s;
  animation-delay: 8s;
}

.code-line-6 {
  left: 55%;
  animation-duration: 14s;
  animation-delay: 4s;
}

.code-line-7 {
  left: 65%;
  animation-duration: 19s;
  animation-delay: 7s;
}

.code-line-8 {
  left: 75%;
  animation-duration: 13s;
  animation-delay: 1s;
}

.code-line-9 {
  left: 85%;
  animation-duration: 17s;
  animation-delay: 5s;
}

.code-line-10 {
  left: 95%;
  animation-duration: 21s;
  animation-delay: 9s;
}

@keyframes codeFall {
  0% {
    top: -200px;
    opacity: 0;
  }
  5% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  95% {
    opacity: 0;
  }
  100% {
    top: calc(100vh + 100px);
    opacity: 0;
  }
}

/* Ambient Purple Spotlight */
.hero-spotlight-purple {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* Hero Logo Corner */
.hero-logo-corner {
  position: absolute;
  top: clamp(24px, 4vh, 48px);
  left: clamp(24px, 4vw, 56px);
  z-index: 30;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  animation: fadeInRotate 1s ease-out 0.6s forwards;
}

@keyframes fadeInRotate {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-logo-corner .logo-container {
  width: 260px;
  height: 260px;
  animation: logoFloatIdle 4s ease-in-out infinite;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoFloatIdle {
  0%, 100% { 
    transform: translateY(0px) scale(1);
  }
  50% { 
    transform: translateY(-8px) scale(1.02);
  }
}

.hero-logo-corner:hover .logo-container {
  animation: logoFloatHover 3s ease-in-out infinite;
}

@keyframes logoFloatHover {
  0%, 100% { 
    transform: translateY(-4px) scale(1.08) rotate(0deg);
  }
  50% { 
    transform: translateY(-12px) scale(1.1) rotate(2deg);
  }
}

.hero-logo-corner .logo-core {
  width: 156px;
  height: 156px;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-corner:hover .logo-core {
  transform: scale(1.12);
  box-shadow: 
    0 0 70px rgba(168, 85, 247, 0.8),
    0 0 120px rgba(168, 85, 247, 0.5),
    0 0 160px rgba(168, 85, 247, 0.3);
}

.hero-logo-corner .premium-logo {
  width: 91px;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-corner:hover .premium-logo {
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 1)) brightness(1.2);
  transform: scale(1.05);
}

.hero-logo-corner .logo-glow-ring {
  animation-duration: 25s;
  opacity: 0.85;
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              animation-duration 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-corner:hover .logo-glow-ring {
  opacity: 1;
  animation-duration: 15s;
}

.hero-logo-corner .logo-glow-ring-1 {
  width: 234px;
  height: 234px;
}

.hero-logo-corner .logo-glow-ring-2 {
  width: 195px;
  height: 195px;
}

.hero-logo-corner .logo-glow-ring-3 {
  width: 156px;
  height: 156px;
}

.hero-logo-corner .logo-particles {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo-corner:hover .logo-particles .particle {
  animation-duration: 2s;
  opacity: 1;
}

/* ===== WINKLA CRAFT ENGINE - Middle Left ===== */
.winkla-craft-engine {
  position: absolute;
  top: 65%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 20;
}

.craft-engine-glass {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 24px 48px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 40px rgba(168, 85, 247, 0.1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.6s forwards;
  min-width: 200px;
}

.craft-engine-glass:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 60px rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.craft-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.node-dot {
  width: 10px;
  height: 10px;
  background: rgba(168, 85, 247, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.9);
  }
}

.node-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.pipeline-connector {
  position: relative;
  width: 2px;
  height: 30px;
}

.connector-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(168, 85, 247, 0.4), 
    rgba(168, 85, 247, 0.2));
}

.traveling-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(168, 85, 247, 1);
  animation: travelPipelineVertical 4s linear infinite;
}

@keyframes travelPipelineVertical {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.craft-engine-glass:hover .traveling-dot {
  animation-duration: 8s;
}

/* ===== INTELLIGENCE NODE - Upper Right ===== */
.intelligence-node {
  position: absolute;
  top: 3%;
  right: 16%;
  z-index: 30;
  opacity: 0;
  animation: fadeInRotate 1s ease-out 1.8s forwards;
}

.intelligence-orb {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intelligence-node:hover .intelligence-orb {
  transform: scale(1.05);
}

.orb-outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: orbRotate 20s linear infinite;
  box-shadow: 
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 0 20px rgba(168, 85, 247, 0.1);
}

.intelligence-node:hover .orb-outer-ring {
  animation-duration: 12s;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 0 30px rgba(168, 85, 247, 0.4),
    inset 0 0 30px rgba(168, 85, 247, 0.2);
}

@keyframes orbRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.orb-inner-ring {
  position: absolute;
  width: 70%;
  height: 70%;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  animation: orbRotate 15s linear infinite reverse;
}

.orb-core {
  position: relative;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, 
    rgba(168, 85, 247, 0.3) 0%, 
    rgba(168, 85, 247, 0.1) 50%, 
    transparent 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: corePulse 3s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.6);
    transform: scale(1.1);
  }
}

.intelligence-node:hover .orb-core {
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.7);
}

.orb-status {
  font-family: 'Space Grotesk', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.orb-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.orbit-dot-1 {
  top: 10%;
  left: 50%;
  animation: orbitPath1 8s linear infinite;
}

.orbit-dot-2 {
  top: 50%;
  right: 10%;
  animation: orbitPath2 10s linear infinite;
}

.orbit-dot-3 {
  bottom: 15%;
  left: 20%;
  animation: orbitPath3 12s linear infinite;
}

@keyframes orbitPath1 {
  0% {
    transform: rotate(0deg) translateX(110px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(110px) rotate(-360deg);
  }
}

@keyframes orbitPath2 {
  0% {
    transform: rotate(120deg) translateX(110px) rotate(-120deg);
  }
  100% {
    transform: rotate(480deg) translateX(110px) rotate(-480deg);
  }
}

@keyframes orbitPath3 {
  0% {
    transform: rotate(240deg) translateX(110px) rotate(-240deg);
  }
  100% {
    transform: rotate(600deg) translateX(110px) rotate(-600deg);
  }
}

.intelligence-tooltip {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  color: rgba(226, 232, 240, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.intelligence-node:hover .intelligence-tooltip {
  opacity: 1;
}

/* ===== RESPONSIVE - Hide on Mobile ===== */
@media (max-width: 768px) {
  .winkla-craft-engine,
  .intelligence-node {
    display: none;
  }
}

/* Main Premium Container */
.hero-premium-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

 .hero-premium-container {
   padding-left: var(--center-safe-inline);
   padding-right: var(--center-safe-inline);
   box-sizing: border-box;
 }

/* ===== LUXURY ORBITAL RING SYSTEM ===== */
.hero-premium-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 50%;
  animation: orbitalRing 20s linear infinite;
  z-index: 5;
}

.hero-premium-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(168, 85, 247, 0.05);
  border-radius: 50%;
  animation: orbitalRing 30s linear infinite reverse;
  z-index: 4;
}

@keyframes orbitalRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Center Stage - Main Heading */
.hero-center-stage {
  position: relative;
  z-index: 25;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: radial-gradient(ellipse at center, 
    rgba(168, 85, 247, 0.08) 0%, 
    rgba(168, 85, 247, 0.02) 40%, 
    transparent 70%);
  border-radius: 40px;
  backdrop-filter: blur(8px);
  animation: centerStageGlow 4s ease-in-out infinite, fadeInUp 1s ease-out forwards;
  opacity: 0;
}

 .hero-center-stage {
   width: min(860px, 100%);
 }

@keyframes centerStageGlow {
  0%, 100% {
    background: radial-gradient(ellipse at center, 
      rgba(168, 85, 247, 0.08) 0%, 
      rgba(168, 85, 247, 0.02) 40%, 
      transparent 70%);
  }
  50% {
    background: radial-gradient(ellipse at center, 
      rgba(168, 85, 247, 0.12) 0%, 
      rgba(168, 85, 247, 0.04) 40%, 
      transparent 70%);
  }
}

.hero-label-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  background: #a855f7;
  border-radius: 50%;
  animation: pulsePurple 2s ease-in-out infinite;
}

@keyframes pulsePurple {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(168, 85, 247, 0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(168, 85, 247, 0.8); }
}

.hero-label-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, #a855f7, transparent);
}

/* Premium Heading with Outline Effect */
.hero-premium-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(70px, 9vw, 140px);
  font-weight: 700;
  line-height: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  position: relative;
  animation: headingFloat 6s ease-in-out infinite;
  opacity: 0;
  animation: fadeInScale 1s ease-out 0.4s forwards, headingFloat 6s ease-in-out 1.4s infinite;
}

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

.hero-heading-outline {
  color: transparent;
  -webkit-text-stroke: 3px #e2e8f0;
  letter-spacing: 0.02em;
  position: relative;
  animation: outlineGlow 3s ease-in-out infinite;
}

@keyframes outlineGlow {
  0%, 100% {
    -webkit-text-stroke: 3px #e2e8f0;
    filter: drop-shadow(0 0 20px rgba(226, 232, 240, 0.3));
  }
  50% {
    -webkit-text-stroke: 3px rgba(226, 232, 240, 0.8);
    filter: drop-shadow(0 0 40px rgba(226, 232, 240, 0.5));
  }
}

.hero-heading-filled {
  background: linear-gradient(135deg, 
    #e2e8f0 0%, 
    #a855f7 50%, 
    #e2e8f0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  text-shadow: 0 0 60px rgba(168, 85, 247, 0.4);
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Premium Tagline */
.hero-premium-tagline {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 500px;
  text-align: center;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* ===== LUXURY CTA SECTION ===== */
.hero-cta-section {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Premium CTA Button */
.hero-premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-premium-btn .btn-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.hero-premium-btn .btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  transition: all 0.3s ease;
}

.hero-premium-btn:hover .btn-text {
  color: #a855f7;
}

.hero-premium-btn:hover .btn-icon {
  background: #a855f7;
  color: #020617;
  border-color: #a855f7;
  transform: translateX(8px);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
}

/* Secondary CTA Button */
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50px;
  padding: 14px 28px;
  color: #e2e8f0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(16px);
}

.hero-secondary-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2);
}

.hero-secondary-btn .btn-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.hero-secondary-btn:hover .btn-icon {
  opacity: 1;
}

/* CTA Microcopy */
.hero-cta-microcopy {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(148, 163, 184, 0.8);
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Proof Strip */
.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.proof-item {
  display: flex;
  align-items: center;
}

.proof-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.7);
}

.proof-separator {
  color: rgba(168, 85, 247, 0.4);
  font-size: 12px;
}

/* ===== CURSOR SPOTLIGHT - DISABLED ===== */
.cursor-spotlight {
  opacity: 0;
}

/* ===== QUOTE MODAL ===== */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quote-modal-container {
  width: 100%;
  max-width: 520px;
  margin: 20px;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-modal-overlay.active .quote-modal-container {
  transform: translateY(0) scale(1);
}

.quote-modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  backdrop-filter: blur(32px);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(168, 85, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quote-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.8);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.quote-modal-close:hover {
  color: #e2e8f0;
  background: rgba(168, 85, 247, 0.1);
}

.quote-modal-header {
  margin-bottom: 32px;
}

.quote-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 8px 0;
}

.quote-modal-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(148, 163, 184, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* Form Styling */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  color: #e2e8f0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.form-submit {
  flex: 1;
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

.form-submit:disabled {
  background: rgba(148, 163, 184, 0.2);
  color: rgba(148, 163, 184, 0.5);
  cursor: not-allowed;
}

.form-cancel {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  color: rgba(148, 163, 184, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-cancel:hover {
  border-color: rgba(148, 163, 184, 0.5);
  color: #e2e8f0;
}

/* ===== RESPONSIVE LUXURY ENHANCEMENTS ===== */
@media (max-width: 768px) {
  .hero-cta-buttons {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  
  .hero-premium-btn,
  .hero-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-proof-strip {
    flex-direction: column;
    gap: 12px;
  }
  
  .proof-separator {
    display: none;
  }
  
  .hero-cta-microcopy {
    font-size: 13px;
  }
  
  .quote-modal-container {
    margin: 10px;
  }
  
  .quote-modal-content {
    padding: 24px 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .cursor-spotlight {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-cta-section {
    gap: 20px;
  }
  
  .quote-modal-title {
    font-size: 20px;
  }
  
  .quote-modal-subtitle {
    font-size: 13px;
  }
  
  .form-group {
    gap: 6px;
  }
}

/* Premium CTA Button */
.hero-premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-premium-btn .btn-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.hero-premium-btn .btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  transition: all 0.3s ease;
}

.hero-premium-btn:hover .btn-text {
  color: #a855f7;
}

.hero-premium-btn:hover .btn-icon {
  background: #a855f7;
  color: #020617;
  border-color: #a855f7;
  transform: translateX(8px);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
}

/* ========================================
   FLOATING PREMIUM PANELS
   ======================================== */

 .hero-panel-logo,
 .hero-panel-terminal {
   display: none !important;
 }

 .hero-panel-nav-trigger {
   display: none !important;
 }

.hero-panel {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(168, 85, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* ===== NAV RAIL - Vertical Pill ===== */
.nav-rail {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  pointer-events: auto;
}

.nav-rail__pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 12px 10px;
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 2px 12px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 30px rgba(168, 85, 247, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-rail__pill:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 4px 20px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 40px rgba(168, 85, 247, 0.08);
}

/* Hamburger Button */
.nav-rail__hamburger {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.nav-rail__hamburger-rings {
  position: absolute;
  inset: -6px;
  pointer-events: none;
}

.hamburger-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.2);
  animation: hamburgerRingPulse 4s ease-in-out infinite;
}

.hamburger-ring-1 {
  inset: -3px;
  animation-delay: 0s;
}

.hamburger-ring-2 {
  inset: -8px;
  border-color: rgba(168, 85, 247, 0.1);
  animation-delay: -2s;
}

@keyframes hamburgerRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}

.hamburger-core {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hamburger-icon-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 20px;
  position: relative;
}

.icon-line {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
  transition: all 0.6s cubic-bezier(0.2, 0, 0.2, 1);
  transform-origin: center;
}

.icon-line-1 { width: 16px; transform: translateY(0); }
.icon-line-2 { width: 22px; transform: translateY(0); }

.nav-rail__hamburger:hover .icon-line-1 {
  width: 22px;
  background: #fff;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.nav-rail__hamburger:hover .icon-line-2 {
  width: 16px;
  background: #fff;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

/* Nav open state - X transform */
body.nav-open .icon-line-1 {
  transform: rotate(45deg) translate(2px, 2px);
  width: 20px;
  background: #fff;
}

body.nav-open .icon-line-2 {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 20px;
  background: #fff;
}

/* Section Dots */
.nav-rail__dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  margin: 10px 0;
}

.nav-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.08);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-rail__dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-rail__dot:hover {
  transform: scale(1.4);
  border-color: rgba(168, 85, 247, 0.8);
  background: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.nav-rail__dot:hover::before {
  background: rgba(168, 85, 247, 0.1);
}

.nav-rail__dot.is-active {
  transform: scale(1.5);
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.5);
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.6),
    0 0 0 3px rgba(168, 85, 247, 0.2);
}

.nav-rail__dot.is-active::before {
  background: rgba(168, 85, 247, 0.15);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.nav-rail__dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

/* Social Icons */
.nav-rail__socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.nav-rail__social {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.6);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-rail__social:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.nav-rail__social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.nav-rail__social svg {
  width: 14px;
  height: 14px;
}

/* Tablet responsive */
@media (max-width: 1024px) {
  .nav-rail {
    right: 10px;
  }

  .nav-rail__pill {
    padding: 10px 8px;
  }

  .nav-rail__hamburger {
    width: 46px;
    height: 46px;
  }

  .nav-rail__hamburger-lines {
    width: 18px;
    gap: 4px;
  }

  .nav-rail__dot {
    width: 7px;
    height: 7px;
  }

  .nav-rail__social {
    width: 30px;
    height: 30px;
  }

  .nav-rail__social svg {
    width: 13px;
    height: 13px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-rail {
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: 16px;
  }

  .nav-rail__pill {
    flex-direction: row;
    padding: 8px 12px;
    gap: 0;
  }

  .nav-rail__hamburger {
    width: 40px;
    height: 40px;
  }

  .nav-rail__hamburger-lines {
    width: 16px;
    gap: 3px;
  }

  .nav-rail__hamburger-rings {
    display: none;
  }

  .nav-rail__dots {
    flex-direction: row;
    padding: 0 12px;
    margin: 0 8px;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(168, 85, 247, 0.15);
    border-right: 1px solid rgba(168, 85, 247, 0.15);
    gap: 8px;
  }

  .nav-rail__dot {
    width: 6px;
    height: 6px;
  }

  .nav-rail__socials {
    flex-direction: row;
    gap: 6px;
    padding-top: 0;
  }

  .nav-rail__social {
    width: 28px;
    height: 28px;
  }

  .nav-rail__social svg {
    width: 12px;
    height: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-rail__pill {
    padding: 6px 10px;
  }

  .nav-rail__hamburger {
    width: 36px;
    height: 36px;
  }

  .nav-rail__hamburger-lines {
    width: 14px;
    gap: 3px;
  }

  .nav-rail__dots {
    padding: 0 10px;
    margin: 0 6px;
    gap: 6px;
  }

  .nav-rail__socials {
    gap: 4px;
  }

  .nav-rail__social {
    width: 26px;
    height: 26px;
  }

  .nav-rail__social svg {
    width: 11px;
    height: 11px;
  }
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.1) 0%, 
    transparent 50%, 
    rgba(168, 85, 247, 0.05) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.hero-panel:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Panel 1: Terminal Status (Top Left) */
.hero-panel-terminal {
  top: 8%;
  left: 5%;
  width: 280px;
  padding: 0;
  overflow: hidden;
}

.panel-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.panel-terminal-body {
  padding: 16px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
}

.terminal-line {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  color: #94a3b8;
}

.term-prompt {
  color: #a855f7;
  font-weight: 600;
}

.term-text {
  color: #e2e8f0;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.status-icon {
  color: #22c55e;
  font-weight: 700;
}

.status-text {
  color: #e2e8f0;
}

/* Panel 2: Metrics Card (Top Right) */
.hero-panel-metrics {
  top: 8%;
  right: 5%;
  width: 240px;
}

.metrics-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.metrics-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.metrics-icon svg {
  width: 18px;
  height: 18px;
}

.metrics-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
}

.metrics-body {
  text-align: center;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #a855f7;
  line-height: 1;
}

.metric-unit {
  font-size: 24px;
  color: #8b5cf6;
}

.metric-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
  margin-bottom: 12px;
}

.metric-bar {
  height: 4px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #a855f7, #8b5cf6);
  border-radius: 999px;
  animation: fillMetric 2s ease-out;
}

@keyframes fillMetric {
  from { width: 0; }
  to { width: 100%; }
}

/* Panel 3: Projects Counter (Middle Left) */
.hero-panel-counter {
  top: 45%;
  left: 3%;
  width: 200px;
  text-align: center;
}

.counter-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1;
}

.counter-plus {
  color: #a855f7;
}

.counter-label {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
  margin-bottom: 12px;
}

.counter-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot-live {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseLive 1.5s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
  50% { opacity: 0.5; }
}

/* Panel 4: Quote Section (Bottom Right) */
.hero-panel-quote {
  bottom: 12%;
  right: 5%;
  width: 320px;
  border-left: 3px solid #a855f7;
  padding-left: 24px;
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  color: rgba(168, 85, 247, 0.3);
  line-height: 0.5;
  margin-bottom: 12px;
}

.quote-text {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 16px 0;
}

.quote-signature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signature-logo {
  width: 80px;
  height: auto;
}

.quote-since {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Panel 5: Tech Stack (Bottom Left) */
.hero-panel-tech {
  bottom: 12%;
  left: 5%;
  width: 220px;
}

.tech-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 6px;
  font-size: 11px;
  color: #a855f7;
  font-weight: 500;
}

/* Panel 6: Rotating Shield (Center Right) */
.hero-panel-shield {
  top: 40%;
  right: 15%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
}

.shield-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.shield-ring-1 {
  width: 100%;
  height: 100%;
  animation: rotateShield 10s linear infinite;
}

.shield-ring-2 {
  width: 70%;
  height: 70%;
  animation: rotateShield 15s linear infinite reverse;
}

@keyframes rotateShield {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== LUXURY ORBITAL ANIMATIONS ===== */
@keyframes orbitalFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  25% {
    transform: translateY(-8px) translateX(4px) scale(1.02);
  }
  50% {
    transform: translateY(-4px) translateX(-2px) scale(1);
  }
  75% {
    transform: translateY(6px) translateX(-4px) scale(0.98);
  }
}

@keyframes orbitalPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    filter: drop-shadow(0 12px 40px rgba(34, 197, 94, 0.4));
  }
  50% {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 16px 48px rgba(34, 197, 94, 0.6));
  }
}

@keyframes orbitalGlow {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    filter: drop-shadow(0 12px 40px rgba(59, 130, 246, 0.4));
  }
  33% {
    transform: translateY(-50%) scale(1.03);
    filter: drop-shadow(0 16px 48px rgba(59, 130, 246, 0.6));
  }
  66% {
    transform: translateY(-50%) scale(0.97);
    filter: drop-shadow(0 8px 32px rgba(59, 130, 246, 0.3));
  }
}

.shield-core {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
}

.shield-core svg {
  width: 24px;
  height: 24px;
}

.shield-label {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #a855f7;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ========================================
   SOCIAL LINKS & TRUSTED BY
   ======================================== */

/* ===== LUXURY UTILITY RAIL ===== */
.utility-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 20px;
  padding: 16px 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.utility-rail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.utility-rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  color: rgba(148, 163, 184, 0.7);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.utility-rail-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.05) 0%, 
    transparent 50%, 
    rgba(168, 85, 247, 0.02) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.utility-rail-item:hover::before {
  opacity: 1;
}

.utility-rail-item:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(168, 85, 247, 0.15);
}

.utility-rail-item:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 
    0 0 0 3px rgba(168, 85, 247, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.utility-rail-primary {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #a855f7;
}

.utility-rail-primary:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(168, 85, 247, 0.25);
}

.utility-rail-divider {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(168, 85, 247, 0.2) 50%, 
    transparent 100%);
  margin: 4px auto;
}

/* Tooltips */
.utility-rail-item::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1000;
}

.utility-rail-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

/* Ripple Effect */
.utility-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.3);
  transform: scale(0);
  animation: utilityRipple 0.6s ease-out;
  pointer-events: none;
}

@keyframes utilityRipple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Premium Trusted By */
.hero-trusted-premium {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
}

.trusted-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-bottom-cta {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 50;
}

/* ========================================
   PREMIUM HERO - RESPONSIVE STYLES
   ======================================== */

/* Large Desktop - Adjust panel positions */
@media (max-width: 1400px) {
  .hero-panel-terminal {
    left: 2%;
    width: 260px;
  }
  
  .hero-panel-metrics {
    right: 2%;
    width: 220px;
  }
  
  .hero-panel-quote {
    width: 280px;
  }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
  .hero-premium-heading {
    font-size: clamp(50px, 7vw, 100px);
  }
  
  .hero-premium-tagline {
    font-size: 16px;
  }
  
  /* Adjust panel positions for smaller screens */
  .hero-panel-terminal {
    left: 1%;
    top: 5%;
    width: 240px;
  }
  
  .hero-panel-metrics {
    right: 1%;
    top: 5%;
    width: 200px;
  }
  
  .hero-panel-counter {
    left: 1%;
    width: 180px;
  }
  
  .hero-panel-shield {
    right: 10%;
  }
  
  .hero-panel-quote {
    right: 2%;
    width: 260px;
  }
  
  .hero-panel-tech {
    left: 2%;
    width: 200px;
  }
}

/* Tablet Portrait */
@media (max-width: 968px) {
  .hero {
    padding: 60px 24px;
  }
  
  .hero-premium-heading {
    font-size: clamp(40px, 6vw, 80px);
  }
  
  .hero-premium-tagline {
    font-size: 15px;
    max-width: 400px;
  }
  
  /* Stack panels differently */
  .hero-panel-terminal {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 320px;
  }
  
  .hero-panel-metrics {
    top: auto;
    bottom: 2%;
    right: 2%;
    width: 180px;
  }
  
  .hero-panel-counter {
    top: auto;
    bottom: 2%;
    left: 2%;
    width: 160px;
  }
  
  .hero-panel-shield {
    display: none; /* Hide shield on tablets */
  }
  
  .hero-panel-quote {
    top: 20%;
    right: 2%;
    width: 240px;
  }
  
  .hero-panel-tech {
    top: 20%;
    left: 2%;
    width: 180px;
  }
  
  .utility-rail {
    right: 16px;
    padding: 12px 8px;
  }
  
  .utility-rail-item {
    width: 44px;
    height: 44px;
  }
}

/* Mobile Landscape & Large Phones */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
    min-height: auto;
  }
  
  .hero-premium-container {
    height: auto;
    min-height: 70vh;
  }
  
  .hero-premium-heading {
    font-size: clamp(36px, 10vw, 60px);
  }
  
  .hero-premium-tagline {
    font-size: 14px;
    max-width: 320px;
  }
  
  .hero-label-top {
    font-size: 10px;
  }
  
  .hero-premium-btn .btn-text {
    font-size: 12px;
  }
  
  .hero-premium-btn .btn-icon {
    width: 42px;
    height: 42px;
  }
  
  /* Simplify panel layout for mobile */
  .hero-panel-terminal {
    width: 85%;
    max-width: 280px;
  }
  
  .hero-panel-metrics,
  .hero-panel-counter {
    width: 42%;
    min-width: 140px;
  }
  
  .hero-panel-quote {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 320px;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-panel-tech {
    display: none; /* Hide tech stack on mobile */
  }
  
  .utility-rail {
    position: fixed;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    top: auto;
    flex-direction: row;
    padding: 12px 16px;
    border-radius: 24px;
  }
  
  .utility-rail-section {
    flex-direction: row;
  }
  
  .utility-rail-divider {
    width: 1px;
    height: 24px;
    margin: 0 8px;
  }
  
  .utility-rail-item::after {
    display: none; /* Hide tooltips on mobile */
  }
  
  .hero-trusted-premium {
    position: relative;
    margin-top: 40px;
    bottom: auto;
  }
  
  .trusted-label {
    font-size: 9px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 0;
    margin-top: -60px;
    padding-top: 60px;
  }
  
  .code-line {
    font-size: 12px;
  }
  
  .hero-center-stage {
    gap: 16px;
    padding: 20px 15px;
    max-width: 90%;
  }
  
  .hero-premium-heading {
    font-size: clamp(32px, 9vw, 50px);
  }
  
  .hero-premium-tagline {
    font-size: 13px;
    max-width: 280px;
  }
  
  .hero-premium-btn {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-premium-btn .btn-text {
    font-size: 11px;
  }
  
  .hero-premium-btn .btn-icon {
    width: 38px;
    height: 38px;
  }
  
  /* Further simplify panels */
  .hero-panel {
    padding: 16px;
  }
  
  .hero-panel-terminal {
    width: 90%;
    max-width: 260px;
  }
  
  .panel-terminal-body {
    padding: 12px;
    font-size: 11px;
  }
  
  .hero-panel-metrics {
    width: 45%;
  }
  
  .metrics-body {
    padding: 8px 0;
  }
  
  .metric-value {
    font-size: 36px;
  }
  
  .metric-unit {
    font-size: 18px;
  }
  
  .hero-panel-counter {
    width: 45%;
  }
  
  .counter-number {
    font-size: 40px;
  }
  
  .hero-panel-quote {
    margin-top: 280px;
    padding-left: 16px;
    border-left-width: 2px;
  }
  
  .quote-mark {
    font-size: 48px;
  }
  
  .quote-text {
    font-size: 13px;
  }
  
  .signature-logo {
    width: 60px;
  }
  
  .social-link-premium {
    width: 40px;
    height: 40px;
  }
  
  .social-link-premium svg {
    width: 16px;
    height: 16px;
  }
  
  .utility-rail {
    bottom: 60px;
    gap: 12px;
  }
  
  .utility-rail-item {
    width: 40px;
    height: 40px;
  }
  
  .hero-spotlight-purple {
    width: 800px;
    height: 800px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .hero-premium-heading {
    font-size: clamp(28px, 8vw, 42px);
  }
  
  .hero-premium-tagline {
    font-size: 12px;
  }
  
  .hero-panel-metrics,
  .hero-panel-counter {
    width: 48%;
    padding: 12px;
  }
  
  .metric-value {
    font-size: 32px;
  }
  
  .counter-number {
    font-size: 36px;
  }
}

/* CTA blok ispod hero sekcije (koristimo ga na mobileu, desktop po potrebi) */
.mobile-hero-cta {
  display: none;
  margin-top: 24px;
  justify-content: center;
}

.hero-start-project-btn {
  font-size: 13px;
  padding: 16px 40px;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.38);
  color: #f9fafb;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9);          /* crisp cut-out, bez bojanog glowa */
  backdrop-filter: blur(18px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  position: relative;
  z-index: 51; /* iznad ostalih hero slojeva */
  overflow: hidden;
}

.hero-start-project-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at var(--glow-x, 0%) var(--glow-y, 0%),
      rgba(17, 24, 39, 0.18),
      transparent 55%
    );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-start-project-btn::after {
  content: "";
  position: absolute;
  inset: -16px; /* širi halo izvan ruba gumba */
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(17, 24, 39, 0.35),
      transparent var(--glow-radius, 58%)
    );
  opacity: var(--glow-outer-opacity, 0);
  filter: blur(18px);
  transition: opacity 0.18s ease;
}

.hero-start-project-btn:hover {
  background: transparent;
  border-color: rgba(248, 250, 252, 0.9);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 0 10px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.hero-start-project-btn:hover::before {
  opacity: 1;
}

.hero-start-project-btn:hover::after {
  opacity: 0.9;
}

@keyframes heroCtaGlow {
  0% {
    opacity: 0.26;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.26;
  }
}


.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-end;
  max-width: 820px;
  padding-left: 30px;
  padding-bottom: 140px; /* Increased bottom padding */
  height: 100%; /* Ensure it takes full height to push content down */
}

.hero-heading {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px; /* Reduced from 32px */
  line-height: 1.1; /* Tighter line spacing */
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 600px;
  text-indent: 60px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 5px rgba(255, 255, 255, 0.2);
}

.hero-heading .line {
  display: block;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.82;
  color: rgba(148, 163, 184, 0.9);
  max-width: 560px;
}

.hero-trust-note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
  max-width: 480px;
}

.hero-secondary-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
}

.hero-secondary-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

.hero-ctas .btn {
  padding: 13px 30px;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-socials {
  position: absolute;
  top: 58%;
  right: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero-social-link {
  width: 64px;
  height: 64px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.8;
  background: transparent;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-social-link--glyph {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0;
}

.hero-socials .hero-social-link[aria-label="Facebook"] {
  font-size: 26px;
}

.hero-social-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-social-accent {
  font-size: 0.9em;
  transform: none;
}

.hero-social-link svg {
  width: 28px;
  height: 28px;
}

.hero-social-link svg * {
  fill: currentColor;
  stroke: none;
}
 
.hero-social-link--instagram svg * {
  fill: transparent;
  stroke: currentColor;
}

.hero-social-link--instagram svg rect,
.hero-social-link--instagram svg circle:first-of-type {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.2;
}

.hero-social-link--instagram svg circle:last-of-type {
  fill: currentColor;
  stroke: none;
}

.hero-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
  background-color: transparent;
  color: #a855f7;
  text-decoration: none;
}


/* Spline 3D Container */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image-wrapper {
  position: static; /* dopušta da Spline bude centriran prema .hero, ne samo desnoj koloni */
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40%;
}

.spline-3d-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* container točno u centru hero sekcije */
  width: min(700px, 40vw);
  height: min(700px, 40vw);
  pointer-events: auto; /* omogućava interakciju sa Spline sferom */
  z-index: 1; /* iznad pozadine, ali ispod UI slojeva kojima gasimo pointer-events */
  background: transparent; /* nema nikakvog okvira / pozadine oko sfere */
}

.spline-3d-container spline-viewer {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent; /* ako viewer ima vlastitu pozadinu, neka bude prozirna */
  /* Pomakni Spline sadržaj malo ulijevo unutar centriranog container-a
     kako bi sama sfera pala vizualno u sredinu ekrana */
  transform: translateX(-50%) scale(1.65);
  transform-origin: center center;
}

/* Larger screens - scale up Spline and hero elements */
@media (min-width: 1600px) {
  .spline-3d-container {
    width: min(900px, 42vw);
    height: min(900px, 42vw);
  }
  
  .hero-heading {
    font-size: 32px; /* Scaled down */
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .btn {
    padding: 17px 36px;
    font-size: 16px;
  }
}

@media (min-width: 1920px) {
  .spline-3d-container {
    width: min(1100px, 45vw);
    height: min(1100px, 45vw);
  }
  
  .spline-3d-container spline-viewer {
    transform: scale(1.6);
  }
  
  .hero-heading {
    font-size: 36px; /* Scaled down */
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
  
  .hero-vision-text {
    font-size: 52px;
  }
  
  .btn {
    padding: 19px 40px;
    font-size: 17px;
  }
}

@media (min-width: 2560px) {
  .spline-3d-container {
    width: min(1400px, 48vw);
    height: min(1400px, 48vw);
  }
  
  .spline-3d-container spline-viewer {
    transform: scale(1.7);
  }
  
  .hero-heading {
    font-size: 42px; /* Scaled down */
  }
  
  .hero-subtitle {
    font-size: 26px;
  }
  
  .hero-vision-text {
    font-size: 64px;
  }
  
  .btn {
    padding: 22px 48px;
    font-size: 19px;
  }
  
  .latest-work-title {
    font-size: 140px;
  }
  
  .about-heading {
    font-size: 64px;
  }
  
  .work-current-number {
    font-size: 200px;
  }
  
  .work-project-title {
    font-size: 68px;
  }
  
  .work-project-description {
    font-size: 18px;
  }
  
  .work-image-wrapper {
    max-width: 1300px;
  }
  
  .latest-work-container {
    grid-template-columns: 520px 1fr;
  }
  
  .work-sidebar {
    padding: 40px 0 40px 70px;
  }
}

/* Hide Spline watermark - immediate and aggressive */

/* Additional global hiding */

.hero-meta {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-meta-item {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 60%),
    rgba(15, 23, 42, 0.92);
}

.hero-meta-item .label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 6px;
}

.hero-meta-item .value {
  font-size: 14px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  inset: 10%;
}

.orbit-outer {
  inset: 4%;
  border-color: rgba(248, 250, 252, 0.14);
}

.orbit-middle {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(168, 85, 247, 0.65);
}

.orbit-inner {
  inset: 24%;
  border-color: rgba(248, 250, 252, 0.3);
}

.hero-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-glow {
  position: absolute;
  width: 76%;
  height: 76%;
  border-radius: 40% 60% 58% 42% / 40% 38% 62% 60%;
  background: radial-gradient(circle at 30% 0, rgba(250, 204, 21, 0.9), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(244, 63, 94, 0.9), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.95), transparent 60%),
    #020617;
  filter: blur(8px);
}

.portrait-mask {
  position: relative;
  width: 70%;
  height: 78%;
  border-radius: 54% 46% 60% 40% / 38% 60% 40% 62%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.8);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.95);
}

.portrait-gradient {
  position: absolute;
  inset: -20%;
  background: linear-gradient(140deg, #facc15 0%, #fb7185 40%, #4f46e5 100%);
  mix-blend-mode: screen;
}

.portrait-cut {
  position: absolute;
  inset: 50% -10% -15%;
  background: rgba(3, 7, 18, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 28px;
}

.portrait-cut span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
}

.portrait-cut span:last-child {
  font-weight: 600;
}

.floating-tag {
  position: absolute;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.96);
  color: rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.floating-tag-top {
  top: 18px;
  right: 22px;
}

.floating-tag-bottom {
  bottom: 24px;
  left: 22px;
}




.hero-vision-text {
  position: absolute;
  top: 2%;
  right: 1.5%;
  text-align: right;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 44px;
  line-height: 1.02;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.9);
  z-index: 2; /* UI tekst iznad sfere */
  /* ne blokira klikove/drag na Spline sferi */
}

.hero-vision-text span {
  display: block;
}

.hero-vision-text span:nth-child(4),
.hero-vision-text span:nth-child(5) {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 5px rgba(255, 255, 255, 0.2);
}

.marquee {
  width: 72%;
  max-width: 1100px;
  margin-top: 0;
  padding-block: 28px;
  overflow: hidden;
  position: absolute;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  z-index: 10;
}

.marquee__inner {
  display: flex;
}

.marquee__content {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 60s linear infinite;
}

.marquee__item {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
}

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

.marquee::before,
.marquee::after {
  content: none;
}

.logos {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logos-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(148, 163, 184, 0.9);
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.9);
}

.logos-row span {
  opacity: 0.72;
}

.logos-row span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
  margin-right: 8px;
}

/* About Section */
.about-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px;
  background: #020617 !important;
  position: relative;
  overflow: hidden;
}

 .about-section::before {
   content: '';
   position: absolute;
   inset: -30%;
   background: none;
   filter: none;
   opacity: 0;
   pointer-events: none;
   z-index: 0;
 }

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

 .about-particles .particle {
   opacity: 0.7;
 }

/* Animated vertical lines container */
.about-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Individual vertical line */
.about-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.1px;
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 0.6;
  
  /* Mask to fade out both the white line AND the orange highlight at ends */
  -webkit-mask: linear-gradient(180deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%);
  mask: linear-gradient(180deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%);

  /* Scroll Animation Props */
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-line.is-visible {
  transform: scaleY(1);
}

/* Animated highlight segment on each line (~5% of line height) */
.about-line-highlight {
  position: absolute;
  left: 0;
  width: 2px;
  height: 5%;
  background: linear-gradient(180deg, 
    rgba(168, 85, 247, 0) 0%,
    rgba(168, 85, 247, 0.5) 15%,
    rgba(168, 85, 247, 0.8) 50%,
    rgba(168, 85, 247, 0.5) 85%,
    rgba(168, 85, 247, 0) 100%);
  box-shadow: 
    0 0 6px rgba(168, 85, 247, 0.5),
    0 0 12px rgba(168, 85, 247, 0.3);
  opacity: 0;
}

.about-line-highlight.is-animating {
  animation: lineHighlight 3.5s linear infinite;
}

/* Animation keyframes for highlighted segments */
@keyframes lineHighlight {
  0% {
    top: -10%;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  95% {
    opacity: 0;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 110px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  transform: none;
  position: relative;
  z-index: 1;
}

.about-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  width: clamp(350px, 35vw, 600px);
  aspect-ratio: 4 / 5;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
}

.about-content {
  color: #ffffff;
  font-family: 'Inter', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.about-header {
  margin-bottom: 48px;
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}

.about-icon {
  color: #a855f7;
  font-size: 70px;
  font-weight: bold;
}

.about-name {
  color: #a855f7;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-title {
  font-size: clamp(65px, 6.5vw, 90px);
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.05;
}

.about-text {
  margin-bottom: 48px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 800px;
  font-weight: 700;
}

.about-text strong {
  color: #ffffff;
  font-weight: 600;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.35);
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.about-link:hover {
  transform: none;
  border-color: rgba(248, 250, 252, 0.7);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  color: #ffffff;
}

.arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.about-link:hover .arrow {
  transform: none;
}

/* Fixed Buttons */
.fixed-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.fixed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.buy-btn {
  background-color: #ffffff;
  color: #020617;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.buy-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.framer-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.framer-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* About Scroll Animation */
.about-header,
.about-text p,
.about-link {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image {
  /* opacity removed to prevent lines showing through */
  transform: translateX(-30px);
  background-color: #020617; /* Match body bg to block lines */
  z-index: 5; /* Ensure it's above lines */
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image img {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image.is-visible {
  transform: translateX(0);
}

.about-image.is-visible img {
  opacity: 1;
}

.about-header.is-visible,
.about-text p.is-visible,
.about-link.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive About Section */
/* Large tablets and small desktops */
@media (max-width: 1200px) {
  .about-section {
    padding: 70px 50px;
    min-height: 100vh;
  }
  
  .about-container {
    gap: 80px;
    max-width: 1200px;
  }
  
  .about-image {
    width: clamp(320px, 40vw, 500px);
  }
  
  .about-title {
    font-size: clamp(50px, 5.5vw, 75px);
  }
  
  .about-text p {
    font-size: 16px;
    max-width: 700px;
  }
}

/* Standard tablets */
@media (max-width: 1024px) {
  .about-section {
    padding: 60px 40px;
    min-height: 90vh;
  }
  
  .about-container {
    gap: 60px;
    max-width: 950px;
  }
  
  .about-image {
    width: clamp(300px, 45vw, 450px);
  }
  
  .about-title {
    font-size: clamp(45px, 5vw, 65px);
  }
  
  .about-text p {
    font-size: 15px;
    line-height: 1.65;
    max-width: 600px;
  }
  
  .about-link {
    padding: 16px 28px;
    font-size: 15px;
  }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
  .about-section {
    padding: 50px 32px;
    min-height: auto;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    max-width: 100%;
  }
  
  .about-image {
    width: clamp(280px, 80vw, 400px);
    margin: 0 auto;
    aspect-ratio: 1 / 1.2;
    border-radius: 20px;
  }
  
  .about-image img {
    border-radius: 20px;
  }
  
  .about-title {
    font-size: clamp(36px, 8vw, 52px);
    line-height: 1.1;
  }
  
  .about-text {
    margin-bottom: 40px;
  }
  
  .about-text p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-link {
    padding: 15px 26px;
    font-size: 14px;
    border-radius: 25px;
  }
  
  .about-lines {
    display: none;
  }
  
  /* Hero orbit scaling */
  .hero-orbit {
    border-width: 1px;
    inset: 15%;
  }
  
  /* Service card scaling */
  .service-card {
    border-radius: 16px;
  }
  
  .service-media {
    border-radius: 14px 14px 0 0;
  }
  
  /* Floating elements scaling */
  .floating-tag {
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 15px;
  }
  
  .dot {
    width: 6px;
    height: 6px;
  }
  
  .service-plus {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .about-section {
    padding: 40px 20px;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }
  
  .about-header {
    margin-bottom: 32px;
  }
  
  .about-image {
    width: clamp(250px, 85vw, 350px);
    aspect-ratio: 1 / 1.15;
    border-radius: 16px;
  }
  
  .about-image img {
    border-radius: 16px;
  }
  
  .about-title {
    font-size: clamp(28px, 7.5vw, 42px);
    line-height: 1.15;
  }
  
  .about-name {
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  
  .about-text {
    margin-bottom: 32px;
  }
  
  .about-text p {
    font-size: 14px;
    line-height: 1.65;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }
  
  .about-link {
    padding: 14px 24px;
    font-size: 13px;
    letter-spacing: 0.01em;
    border-radius: 20px;
  }
  
  .arrow {
    font-size: 16px;
  }
  
  /* Hero elements scaling */
  .hero-orbit {
    border-width: 0.5px;
    inset: 20%;
  }
  
  .hero-social-link {
    width: 48px;
    height: 48px;
  }
  
  /* Service elements scaling */
  .service-card {
    border-radius: 12px;
  }
  
  .service-media {
    border-radius: 10px 10px 0 0;
  }
  
  .service-plus {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }
  
  /* Contact form scaling */
  .contact-input {
    border-radius: 20px;
  }
  
  .contact-textarea {
    border-radius: 12px;
  }
  
  .contact-submit {
    border-radius: 20px;
  }
  
  /* Navigation scaling */
  .nav-pill {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 12px;
  }
  
  .dot {
    width: 5px;
    height: 5px;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .about-section {
    padding: 30px 16px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .about-container {
    gap: 30px;
  }
  
  .about-header {
    margin-bottom: 24px;
  }
  
  .about-image {
    width: clamp(220px, 90vw, 300px);
    border-radius: 12px;
  }
  
  .about-image img {
    border-radius: 12px;
  }
  
  .about-title {
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1.2;
  }
  
  .about-name {
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }
  
  .about-text {
    margin-bottom: 28px;
  }
  
  .about-text p {
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 14px;
  }
  
  .about-link {
    padding: 12px 20px;
    font-size: 12px;
    gap: 8px;
    border-radius: 16px;
  }
  
  .arrow {
    font-size: 14px;
  }
  
  /* Maximum scaling down for smallest screens */
  .hero-orbit {
    display: none;
  }
  
  .hero-social-link {
    width: 40px;
    height: 40px;
  }
  
  .service-plus {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
  
  .floating-tag {
    padding: 3px 6px;
    font-size: 8px;
    border-radius: 10px;
  }
  
  .hero-meta-item {
    padding: 6px 8px;
    border-radius: 10px;
  }
  
  .service-card {
    border-radius: 8px;
  }
  
  .service-media {
    border-radius: 6px 6px 0 0;
  }
  
  .dot {
    width: 4px;
    height: 4px;
  }
  
  .nav-pill {
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 8px;
  }
}




/* Services Section */
.services {
  margin: 80px auto 0;
  padding: 140px 0 60px;
  max-width: 1240px;
  position: relative;
  background: #020617 !important;
}

.services-inner {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.services-header {
  max-width: 720px;
}

.services-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 10px;
}

.services-heading {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f9fafb;
  margin: 0 0 14px;
}

.services-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.96);
  max-width: 640px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: visible;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}

.service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.service-media--strategy {
  background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?w=900&auto=format&fit=crop&q=80");
}

.service-media--design {
  background-image: url("https://images.unsplash.com/photo-1553877522-43269d4ea984?w=900&auto=format&fit=crop&q=80");
}

.service-media--care {
  background-image: url("https://images.unsplash.com/photo-1528372444006-1bfc81acab02?w=900&auto=format&fit=crop&q=80");
}

.service-body {
  position: relative;
  padding: 26px 26px 26px;
}

.service-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 8px;
}

.service-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.96);
}

.service-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.96);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.35), rgba(15, 23, 42, 0.9));
}

.service-plus {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #a855f7;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.service-plus:hover {
  background: #fb923c;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.95);
  border-color: rgba(248, 250, 252, 0.5);
}

/* Subtle decorative glow + label for services section */
.services::before {
  content: "SERVICES";
  position: absolute;
  top: 72px;
  right: 40px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(51, 65, 85, 0.9);
}

.services::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 960px;
  height: 420px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.service-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.service-meta-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 2px;
}

.service-meta-value {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.96);
}

@media (max-width: 1024px) {
  .services {
    padding: 80px 0 32px;
    margin-top: 60px;
  }

  .services-inner {
    padding: 0 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .services-inner {
    padding: 0 16px;
  }

  .services-heading {
    font-size: 34px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-body {
    margin-inline: 14px;
  }
}

/* Animation classes for GSAP */
.about-section.animate .about-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.2s;
}

.about-section.animate .about-line:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.4s;
}

.about-section.animate .about-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.6s;
}

.about-section.animate .about-description {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.8s;
}

.about-section.animate .about-stat:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s ease 1s;
}

.about-section.animate .about-stat:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s ease 1.1s;
}

.about-section.animate .about-stat:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s ease 1.2s;
}

@media (max-width: 1100px) {
  .page-wrap {
    padding: 24px 18px 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto;
  }

  .hero-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-items: flex-end;
  }

  .spline-3d-container {
    width: 560px;
    height: 560px;
  }
}

@media (max-width: 900px) {
  .top-nav {
    padding: 14px 20px;
    min-height: 68px;
  }

  .nav-links {
    flex: 1;
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-center {
    order: -1;
  }

  .hero-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-block: 0;
  }

  .hero-image-wrapper {
    display: none;
  }

  .hero-vertical {
    writing-mode: horizontal-tb;
  }

  .spline-3d-container {
    width: 490px;
    height: 490px;
  }

  .about-section {
    padding: 80px 0;
    margin-top: 60px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 0 40px;
  }

  .about-content {
    text-align: center;
    align-items: center;
  }

  .about-heading {
    font-size: 42px;
  }

  .about-stats {
    gap: 24px;
    justify-content: center;
  }

  .about-stat {
    align-items: center;
  }

  .about-image-wrapper {
    height: 500px;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    padding-inline: 0;
  }
  
  .top-nav {
    padding: 10px 12px;
    min-height: 60px;
  }
  
  .brand-logo {
    height: 32px;
  }
  
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .top-nav {
    align-items: center;
    flex-wrap: nowrap;
    row-gap: 0;
    padding: 10px 16px;
  }

  /* fiksna veličina loga na mobileu, bez skaliranja ovisno o scrollu */
  .brand-mark {
    position: static;
    transform: translate(0, 0) scale(1.4);
    transform-origin: left center;
    transition: transform 0.35s ease, letter-spacing 0.35s ease, top 0.35s ease, left 0.35s ease;
  }

  body.logo-large-at-top .brand-mark {
    position: absolute;
    left: 50%;
    top: 14vh;
    transform: translate(-50%, 0) scale(4.0) !important;
    transform-origin: center center; /* Ensure large logo scales from center */
    letter-spacing: 0.1em;
    pointer-events: none;
  }

  .nav-right {
    width: auto;
    justify-content: flex-end;
    gap: 10px;
  }

  .availability-card {
    display: none;
  }

  .nav-toggle {
    display: flex;
    width: 44px; /* Povećano s 40px */
    height: 44px; /* Povećano s 40px */
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    transform: none;
    margin: 0;
    padding: 18px 20px 22px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    z-index: 60;
    display: none;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block; /* Proširuje klikabilno područje */
    width: 100%;
    padding: 12px 0; /* Dodaje vertikalni padding za lakši klik */
    font-size: 16px; /* Malo veći font */
    letter-spacing: 0.14em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); /* Suptilni glow efekt */
  }

  .hero {
    position: relative; /* Positioning context for marquee */
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-inline: 0;
    padding: 32px 16px 8px;
    min-height: calc(100vh - 40px); /* Taller hero */
    background: linear-gradient(to top, #020617 0%, #000000 140px);
  }

  .hero-left {
    display: contents;
    max-width: 100%;
    padding-left: 0;
    padding-bottom: 0;
  }

  .hero-heading {
    order: 1;
    font-size: 30px; /* Larger font */
    text-indent: 0;
    max-width: 100%;
    line-height: 1.15;
    text-align: center;
    margin-top: 80px; /* More space from logo */
  }

  .hero-subtitle {
    order: 2;
    font-size: 16px; /* Smaller font */
    line-height: 1.6;
    max-width: 32rem;
    margin: 4px auto 4px;
    text-align: center;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-socials {
    order: 4; /* Swapped with CTA */
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 16px; /* More space */
    margin-top: 24px; /* More space */
    position: static;
    top: auto;
    right: auto;
    transform: none;
  }

  .hero-social-link {
    width: 52px; /* Larger icons */
    height: 52px;
  }

  .hero-social-link--glyph {
    font-size: 28px; /* Larger font for Be */
  }

  .hero-start-project-btn {
    font-size: 15px; /* Larger font */
    padding: 20px 48px; /* Larger button */
  }

  .hero-vision-text {
    display: none;
  }

  .hero-trust-note {
    order: 3;
    text-align: center;
    max-width: 100%;
    margin: 8px auto 0;
    font-size: 14px; /* Larger font */
  }

    .marquee {
    position: absolute;
    bottom: 120px;
    left: 0;
    transform: translateX(0);
    opacity: 1;
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-block: 28px;
    overflow: hidden;
  }

  .hero-bottom-cta {
    display: flex;
    position: static;
    order: 5; /* Swapped with socials */
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 24px; /* More space from text */
    gap: 4px;
  }

  .hero-bottom-cta .hero-start-project-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .hero-secondary-link {
    text-align: center;
  }

  .mobile-hero-cta {
    display: none;
  }

  .about-section {
    padding: 60px 0;
    margin-top: 40px;
  }

  .about-container {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 40px;
  }

  .about-content {
    text-align: center;
    align-items: center;
  }

  .about-heading {
    font-size: 32px;
    line-height: 1.2;
  }

  .about-description {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .about-stat {
    padding: 20px 16px;
    align-items: center;
  }

  .stat-number {
    font-size: 28px;
  }

  .about-image-wrapper {
    height: 400px;
  }
}

/* Services Section */
.services {
  margin: 80px auto 0;
  padding: 140px 0 60px;
  max-width: 1240px;
  position: relative;
  background: #020617 !important;
}

.services-inner {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.services-header {
  max-width: 720px;
}

.services-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 10px;
}

.services-heading {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f9fafb;
  margin: 0 0 14px;
}

.services-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.96);
  max-width: 640px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: visible;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}

.service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.service-media--strategy {
  background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?w=900&auto=format&fit=crop&q=80");
}

.service-media--design {
  background-image: url("https://images.unsplash.com/photo-1553877522-43269d4ea984?w=900&auto=format&fit=crop&q=80");
}

.service-media--care {
  background-image: url("https://images.unsplash.com/photo-1528372444006-1bfc81acab02?w=900&auto=format&fit=crop&q=80");
}

.service-body {
  position: relative;
  padding: 20px 22px 22px;
}

.service-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 8px;
}

.service-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.96);
}

.service-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.96);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.35), rgba(15, 23, 42, 0.9));
}

.service-plus {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #a855f7;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
  cursor: pointer;
}

.service-plus:hover {
  background: #fb923c;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.95);
  border-color: rgba(248, 250, 252, 0.5);
}

/* Subtle decorative glow + label for services section */
.services::before {
  content: "SERVICES";
  position: absolute;
  top: 72px;
  right: 40px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(51, 65, 85, 0.9);
}

.services::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 960px;
  height: 420px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.service-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.service-meta-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 2px;
}

.service-meta-value {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.96);
}

@media (max-width: 1024px) {
  .services {
    padding: 80px 0 32px;
    margin-top: 60px;
  }

  .services-inner {
    padding: 0 24px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .services-inner {
    padding: 0 16px;
  }

  .services-heading {
    font-size: 34px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-body {
    margin-inline: 14px;
  }
}

/* Latest Work Section */
.latest-work {
  margin-top: 120px;
  position: relative;
  background-color: #c3c3c3 !important;
}

html[data-theme="dark"] .latest-work {
  background-color: #020617 !important;
}

/* All Work Page - same colors as Blog section */
.all-work-page {
  background-color: #c3c3c3 !important;
}

html[data-theme="dark"] .all-work-page {
  background-color: #020617 !important;
}

.latest-work-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

.latest-work-title {
  font-family: 'Impact', 'Anton', 'Oswald', sans-serif;
  font-size: 160px;
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: #f5f5f7;
  text-transform: uppercase;
  margin: 0;
}

.latest-work-footer {
  margin-top: 0px;
  margin-bottom: 80px;
  display: flex;
  justify-content: center;
}

.latest-work-more-link {
  min-width: 460px;
  padding: 20px 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
  font-size: 18px;
  font-weight: 600;
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.latest-work-more-link:hover {
  transform: none;
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  color: #ffffff;
}

@media (max-width: 640px) {
  .latest-work-more-link {
    width: 100%;
    max-width: 420px;
    padding: 18px 32px;
    font-size: 16px;
    border: 2px solid rgba(248, 250, 252, 0.7);
    box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  }
  
  .latest-work-more-link:hover {
    box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  }
}

/* ========================================
   PREMIUM CONTACT SECTION - WINKLA STUDIO
   Hero-Style Final CTA with Glassmorphism
   ======================================== */

.winkla-contact {
  position: relative;
  background: #020617;
  /* Aggressively reduced padding to eliminate void */
  padding: clamp(100px, 12vw, 160px) clamp(24px, 5vw, 56px) clamp(200px, 20vw, 300px);
  overflow: hidden; /* Clip any overflowing children */
  margin-bottom: -1px; /* Remove any sub-pixel gap */
}

/* Pseudo-element removed - background now on body */
.winkla-contact::before {
  display: none;
}

/* Ambient Background Glows - Now part of unified background */
.winkla-contact__ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}

.winkla-contact__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.18;
  animation: breathe-glow 14s ease-in-out infinite;
}

.winkla-contact__glow--1 {
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(139, 92, 246, 0.2) 40%, transparent 70%);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.winkla-contact__glow--2 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(99, 102, 241, 0.15) 40%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -7s;
}

@keyframes breathe-glow {
  0%, 100% { 
    transform: scale(1) translate(0, 0);
    opacity: 0.2;
  }
  50% { 
    transform: scale(1.1) translate(20px, -20px);
    opacity: 0.25;
  }
}

/* Container */
.winkla-contact__container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

/* Grid Layout */
.winkla-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
  margin-bottom: clamp(80px, 10vw, 140px);
}

/* ===== LEFT: Brand Moment ===== */
.winkla-contact__brand {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
}

/* Eyebrow */
.winkla-contact__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.winkla-contact__eyebrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), transparent);
}

.winkla-contact__eyebrow-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 85, 247, 0.9);
}

/* Heading */
.winkla-contact__heading {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.02em;
}

.winkla-contact__accent {
  color: #a855f7;
  display: inline-block;
  animation: pulse-accent 3s ease-in-out infinite;
}

@keyframes pulse-accent {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Description */
.winkla-contact__description {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.9);
  max-width: 480px;
  margin: 0;
}

/* Trust Badge */
.winkla-contact__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: fit-content;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.85);
  transition: all 0.4s ease;
}

.winkla-contact__trust:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.winkla-contact__trust-icon {
  flex-shrink: 0;
  stroke: rgba(168, 85, 247, 0.8);
}

/* ===== RIGHT: Premium Form ===== */
.winkla-contact__form-wrapper {
  position: relative;
}

.winkla-contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Field */
.winkla-contact__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Label */
.winkla-contact__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
  margin: 0;
}

/* Input Wrapper (for glow effect) */
.winkla-contact__input-wrapper {
  position: relative;
}

/* Glass Input */
.winkla-contact__input {
  width: 100%;
  padding: 16px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 14px;
  outline: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(168, 85, 247, 0);
}

.winkla-contact__textarea {
  min-height: 140px;
  resize: vertical;
  font-family: 'Manrope', sans-serif;
}

.winkla-contact__input::placeholder {
  color: rgba(148, 163, 184, 0.6);
  transition: opacity 0.3s ease;
}

.winkla-contact__input:focus::placeholder {
  opacity: 0.4;
}

/* Focus State */
.winkla-contact__input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(168, 85, 247, 0.15),
    0 8px 24px rgba(168, 85, 247, 0.2);
}

.winkla-contact__input:focus ~ .winkla-contact__input-glow {
  opacity: 1;
}

/* Input Glow (appears on focus) */
.winkla-contact__input-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

/* Submit Button */
.winkla-contact__submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #020617;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.winkla-contact__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.winkla-contact__submit:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 32px rgba(168, 85, 247, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.winkla-contact__submit:hover::before {
  opacity: 1;
}

.winkla-contact__submit:active {
  transform: translateY(-2px);
}

.winkla-contact__submit-text,
.winkla-contact__submit-icon {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.winkla-contact__submit:hover .winkla-contact__submit-icon {
  transform: translateX(4px);
}

.winkla-contact__submit-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 60%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.winkla-contact__submit:hover .winkla-contact__submit-glow {
  opacity: 1;
}

/* ===== FOOTER TRANSITION - Now obsolete with unified background ===== */
.winkla-contact__footer-transition,
.winkla-contact__transition-gradient,
.winkla-contact__transition-ambient-1,
.winkla-contact__transition-ambient-2,
.winkla-contact__transition-line {
  display: none;
}

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

@media (max-width: 1024px) {
  .winkla-contact__grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .winkla-contact__brand {
    max-width: 600px;
  }

  .winkla-contact__description {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .winkla-contact {
    padding: clamp(80px, 12vw, 100px) clamp(20px, 5vw, 24px) clamp(180px, 20vw, 250px);
  }

  .winkla-contact__grid {
    gap: 48px;
    margin-bottom: clamp(60px, 10vw, 80px);
  }

  .winkla-contact__heading {
    font-size: clamp(40px, 10vw, 56px);
  }

  .winkla-contact__trust {
    width: 100%;
    justify-content: center;
  }

  .winkla-contact__submit {
    width: 100%;
  }

  .winkla-footer {
    margin-top: -150px;
    padding-bottom: 0;
  }

  .winkla-footer__glass-card {
    transform: translateY(-10px);
  }
}

/* ========================================
   PREMIUM FOOTER - WINKLA STUDIO
   Glassmorphism + Soft Neon Aesthetic
   ======================================== */

.winkla-footer {
  position: relative;
  background: #020617;
  padding: clamp(80px, 10vw, 120px) 0 0;
  /* Fixed clamp order: min, val, max */
  margin-top: clamp(-200px, -20vw, -150px);
  overflow: visible;
}

/* Container */
.winkla-footer__container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
  z-index: 1;
  margin-bottom: 15px;
}

/* Footer no longer needs separate ambient glows - using unified background */
.winkla-footer__ambient {
  display: none;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Glass Card */
.winkla-footer__glass-card {
  position: relative;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 32px;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
  box-shadow: 
    0 -8px 40px rgba(168, 85, 247, 0.12),
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(168, 85, 247, 0.08);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-10px);
}

.winkla-footer__glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(168, 85, 247, 0.1) 0%, 
    transparent 50%, 
    rgba(59, 130, 246, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.winkla-footer__glass-card:hover {
  border-color: rgba(168, 85, 247, 0.15);
  box-shadow: 
    0 -10px 50px rgba(168, 85, 247, 0.15),
    0 16px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(168, 85, 247, 0.12);
  transform: translateY(-12px);
}

/* Top Section Layout */
.winkla-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Brand Column */
.winkla-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.winkla-footer__logo-wrapper {
  position: relative;
  width: fit-content;
}

.winkla-footer__logo {
  height: auto;
  width: clamp(140px, 15vw, 180px);
  object-fit: contain;
  filter: brightness(1.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.winkla-footer__logo-wrapper:hover .winkla-footer__logo {
  filter: brightness(1.3) drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
  transform: translateY(-2px);
}

.winkla-footer__logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.winkla-footer__logo-wrapper:hover .winkla-footer__logo-glow {
  opacity: 1;
}

.winkla-footer__tagline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: rgba(203, 213, 225, 0.85);
  max-width: 280px;
  letter-spacing: -0.01em;
}

/* Navigation Columns */
.winkla-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 48px);
}

.winkla-footer__nav-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.winkla-footer__nav-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

.winkla-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.winkla-footer__nav-link {
  position: relative;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  width: fit-content;
}

.winkla-footer__nav-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.8), rgba(59, 130, 246, 0.6));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.winkla-footer__nav-link:hover {
  color: #f8fafc;
  transform: translateX(4px);
}

.winkla-footer__nav-link:hover::before {
  width: 100%;
}

/* Contact Column */
.winkla-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.winkla-footer__contact-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin: 0;
}

.winkla-footer__contact-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.winkla-footer__contact-link,
.winkla-footer__contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.winkla-footer__contact-link {
  text-decoration: none;
  cursor: pointer;
}

.winkla-footer__contact-link:hover {
  color: #f8fafc;
  transform: translateX(4px);
}

.winkla-footer__contact-link:hover .winkla-footer__contact-icon {
  stroke: rgba(168, 85, 247, 0.9);
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.winkla-footer__contact-icon {
  flex-shrink: 0;
  stroke: rgba(148, 163, 184, 0.7);
  transition: all 0.3s ease;
}

/* Divider */
.winkla-footer__divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 163, 184, 0.15) 10%,
    rgba(168, 85, 247, 0.2) 50%,
    rgba(148, 163, 184, 0.15) 90%,
    transparent 100%
  );
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* Bottom Section */
.winkla-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

/* Social Links */
.winkla-footer__social {
  display: flex;
  gap: 12px;
}

.winkla-footer__social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(203, 213, 225, 0.8);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.winkla-footer__social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.winkla-footer__social-link:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 
    0 8px 24px rgba(168, 85, 247, 0.2),
    0 0 0 1px rgba(168, 85, 247, 0.3);
}

.winkla-footer__social-link:hover::before {
  opacity: 1;
}

.winkla-footer__social-link svg {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.winkla-footer__social-link:hover svg {
  stroke: rgba(168, 85, 247, 1);
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

/* Legal Links */
.winkla-footer__legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.winkla-footer__legal-link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.winkla-footer__legal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(168, 85, 247, 0.6);
  transition: width 0.3s ease;
}

.winkla-footer__legal-link:hover {
  color: rgba(226, 232, 240, 0.95);
}

.winkla-footer__legal-link:hover::after {
  width: 100%;
}

.winkla-footer__legal-separator {
  color: rgba(148, 163, 184, 0.4);
  font-size: 12px;
}

/* Copyright */
.winkla-footer__copyright {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.7);
  letter-spacing: -0.01em;
}

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

@media (max-width: 1024px) {
  .winkla-footer__top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .winkla-footer__brand {
    align-items: center;
    text-align: center;
  }

  .winkla-footer__tagline {
    max-width: 100%;
  }

  .winkla-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .winkla-footer__bottom {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .winkla-footer {
    padding: clamp(60px, 10vw, 80px) clamp(20px, 5vw, 24px) clamp(32px, 5vw, 40px);
  }

  .winkla-footer__glass-card {
    padding: clamp(32px, 6vw, 48px) clamp(24px, 5vw, 32px);
    border-radius: 24px;
  }

  .winkla-footer__top {
    gap: 40px;
  }

  .winkla-footer__nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .winkla-footer__nav-section {
    align-items: center;
    text-align: center;
  }

  .winkla-footer__nav-list {
    align-items: center;
  }

  .winkla-footer__contact {
    align-items: center;
    text-align: center;
  }

  .winkla-footer__contact-link,
  .winkla-footer__contact-info {
    justify-content: center;
  }

  .winkla-footer__bottom {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .winkla-footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .winkla-footer__copyright {
    text-align: center;
  }
}
/* Split Screen Container */
.latest-work-container {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 0;
}

/* Left Sidebar - Fixed */
.work-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 60px 60px;
  background: #c3c3c3;
  z-index: 10;
 }

 .work-sidebar.is-pinned-center {
  z-index: 20;
 }

html[data-theme="dark"] .work-sidebar {
  background: #020617;
}

.work-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 380px;
  box-sizing: border-box;
  margin: auto 0 auto auto;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.65);
  border-radius: 24px;
  contain: layout paint;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.work-sidebar-content:hover {
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 0 0 28px rgba(248, 250, 252, 0.85);
}

html[data-theme="dark"] .work-sidebar-content {
  background: rgba(2, 6, 23, 0.4);
  border-color: rgba(248, 250, 252, 0.8);
  box-shadow: 0 0 24px rgba(248, 250, 252, 0.55);
}

html[data-theme="dark"] .work-sidebar-content:hover {
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 0 0 32px rgba(248, 250, 252, 0.85);
}

.work-number-display {
  font-family: 'Manrope', sans-serif;
  font-size: 140px;
  font-weight: 700;
  line-height: 0.9;
  color: #111827;
  font-variant-numeric: tabular-nums;
  height: 120px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] .work-number-display {
  color: #FFFFFF;
}

.work-current-number {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-digit {
  display: inline-block;
  position: relative;
  width: 0.66em;
  height: 1em;
  overflow: hidden;
}

.work-digit + .work-digit {
  margin-left: -0.04em;
}

.work-digit-inner {
  position: absolute;
  inset: 0;
  transform: translateY(0%);
}

.work-digit-current,
.work-digit-next {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
}

.work-digit-current {
  top: 0;
}

.work-digit-next {
  top: 100%;
}

.work-digit-dot {
  display: inline-flex;
  align-items: flex-end;
  width: 0.26em;
  margin-left: -0.02em;
  line-height: 1;
  position: relative;
  top: -0.05em;
}

.work-navigation {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-nav-item {
  font-size: 22px;
  color: #64748b;
  text-decoration: none;
  position: relative;
  text-align: center;
  transition: color 0.3s ease;
}

.work-nav-item.active {
  color: #f8fafc;
}

.work-project-info {
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid rgba(248, 250, 252, 0.3);
  min-height: 140px;
}

html[data-theme="dark"] .work-project-info {
  border-top-color: rgba(248, 250, 252, 0.2);
}

.work-project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  min-height: 1.1em;
}

html[data-theme="dark"] .work-project-title {
  color: #FFFFFF;
}

.work-project-description {
  font-size: 16px;
  color: rgba(17, 24, 39, 0.8);
  line-height: 1.6;
  font-weight: 500;
  min-height: 3.2em;
}

html[data-theme="dark"] .work-project-description {
  color: rgba(236, 236, 236, 0.7);
}

/* Right Panel - Scrollable */
.work-images-panel {
  padding: 10vh 20px; /* Reduced from 60px to 20px */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10vh;
}

.work-image-item {
    width: 100%;
    position: relative; /* potrebno za pozicioniranje gumba */
    opacity: 0;
    transform: translateY(40px);
    animation: workItemReveal 0.8s ease-out forwards;
}

.work-image-item:nth-child(1) {
  animation-delay: 0.1s;
}

.work-image-item:nth-child(2) {
  animation-delay: 0.25s;
}

.work-image-item:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes workItemReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transform: scale(0.94);
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
  aspect-ratio: 4 / 3; /* Force standard 4:3 aspect ratio */
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}


.work-scroll-image {
  width: 100%;
  height: 100%; /* Fill the wrapper */
  object-fit: cover; /* Crop to fit */
  display: block;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.45s ease, opacity 0.45s ease;
}

/* Latest Work - Viewfinder overlay + plus hover effect */
.work-viewfinder {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.work-viewfinder-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(248, 250, 252, 0.85);
  opacity: 0.9;
}

.work-viewfinder-corner.tl {
  top: 18px;
  left: 18px;
  border-right: none;
  border-bottom: none;
}

.work-viewfinder-corner.tr {
  top: 18px;
  right: 18px;
  border-left: none;
  border-bottom: none;
}

.work-viewfinder-corner.bl {
  bottom: 18px;
  left: 18px;
  border-right: none;
  border-top: none;
}

.work-viewfinder-corner.br {
  bottom: 18px;
  right: 18px;
  border-left: none;
  border-top: none;
}

.work-viewfinder-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 132px;
  height: 132px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: rgba(248, 250, 252, 0.98);
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
}

.work-viewfinder-plus::before,
.work-viewfinder-plus::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0 !important;
}

.work-image-wrapper:hover .work-scroll-image {
  filter: none;
}

.work-image-wrapper:hover .work-viewfinder-plus {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

.work-image-wrapper:hover .work-viewfinder-plus::before,
.work-image-wrapper:hover .work-viewfinder-plus::after {
  display: none !important;
  opacity: 0 !important;
}

.work-image-wrapper:hover {
  transform: scale(1.06);
}

.work-image-item.is-active .work-image-wrapper {
  transform: scale(1.12);
}

.work-image-item.is-active .work-scroll-image,
.work-image-wrapper:hover .work-scroll-image {
  transform: scale(1);
}


/* Modern Horizontal Services Section */
.services-horizontal {
  display: none; /* HIDDEN: Stara sekcija sakrivena po zahtjevu */
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #020617;
  color: #f5f5f7;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Minimal grid pattern */
.services-horizontal__decoration {
  position: absolute;
  inset: 0;
  background: none !important;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Removed glow effect */

.services-horizontal__inner {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 120vh;
  height: 120vh;
  padding: 20px 0 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateY(-6vh);
  will-change: transform;
  gap: 0;
}

.services-horizontal__header {
  display: none; /* sakriven cijeli header tekst */
  max-width: 720px;
  z-index: 2;
  position: relative;
  margin-bottom: 32px;
  flex-shrink: 0;
}

/* Brand label */
.services-horizontal__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
  margin-bottom: 24px;
}

.services-horizontal__brand svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Main title */
.services-horizontal__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: #f5f5f7;
}

.services-horizontal__title-highlight {
  display: block;
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(135deg, #f5f5f7 0%, rgba(148, 163, 184, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  margin-top: 8px;
}

/* Subtitle */
.services-horizontal__subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.9);
  max-width: 560px;
  margin-bottom: 24px;
}

/* CTA button */
.services-horizontal__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  background: transparent;
  color: #f5f5f7;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services-horizontal__cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(59, 130, 246, 0.25));
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.services-horizontal__cta:hover {
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}

.services-horizontal__cta:hover::before {
  opacity: 1;
}

.services-horizontal__cta svg {
  transition: transform 0.3s ease;
}

.services-horizontal__cta:hover svg {
  transform: translateX(4px);
}

.services-horizontal__viewport {
  position: relative;
  flex: 0 0 auto;
  height: auto;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: none;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

.services-horizontal__viewport::-webkit-scrollbar {
  display: none;
}

.services-horizontal__viewport {
  scrollbar-width: none; /* Firefox */
}

.services-horizontal__canvas {
  position: relative;
  height: auto;
  min-height: 100%;
  width: auto;
  display: flex;
  gap: 20rem;
  align-items: flex-start;
  padding-right: 200px;
  flex-grow: 1;
}

.service-card-h {
  position: relative;
  display: grid;
  grid-template-columns: 30% 58%;
  gap: 24px;
  justify-content: center;
  flex: 0 0 85vw;
  max-width: 1200px;
  min-height: 120vh;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  overflow: visible; 
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}

.service-card-h--active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Service Card Content (Left Side) */
.service-card-h__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 27vh;
  gap: 20px;
  height: 100%;
  padding-right: 5%; /* pomakni tekst udesno, dalje od treće lijeve slike */
  z-index: 25;
}

/* Service Card Visual (Right Side) */
.service-card-h__visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120vh;
  display: flex;
  align-items: center;
  overflow: visible;
}

.service-card-h__image {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.service-card-h__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, transparent 50%);
  opacity: 0;
}

/* Main large image (center) */
.service-card-h__image--main {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 455px;
  height: 615px;
  z-index: 2;
  box-shadow: 
    0 24px 64px -8px rgba(0, 0, 0, 0.4),
    0 8px 24px -4px rgba(0, 0, 0, 0.25);
}

/* Small images */
.service-card-h__image--small {
  width: 320px;
  height: 227px;
  z-index: 3;
  box-shadow: 
    0 16px 48px -8px rgba(0, 0, 0, 0.5),
    0 6px 16px -4px rgba(0, 0, 0, 0.3);
}

.service-card-h__image--1 {
  background-image: url("slike/services/services1-01.avif");
}

.service-card-h__image--2 {
  background-image: url("slike/services/services1-02.avif");
}

.service-card-h__image--3 {
  background-image: url("slike/services/services1-03.avif");
}

.service-card-h__image--4 {
  background-image: url("slike/services/services1-04.avif");
}

.service-card-h__image--5 {
  background-image: url("slike/services/services1-05.avif");
}

.service-card-h__image--6 {
  background-image: url("slike/services/services1-01.avif");
}

/* Small image positions for Card 1 */
.service-card-h__image--1-small-1 {
  /* horizontalna, malo iznad sredine, prekriva desni rub glavne slike */
  top: calc(30% + 20px); /* dodatno spušteno još 10px = ukupno 20px */
  left: calc(80% - 40px); /* dodatno ulijevo još 20px = ukupno 40px */
  right: 4%;
  background-image: url("slike/services/services1-02.avif");
}

.service-card-h__image--1-small-2 {
  /* okomita, gornji desni kut prelazi donji lijevi kut glavne slike */
  width: 227px;
  height: 320px;
  bottom: calc(15% - 60px); /* dodatno spušteno još 30px = ukupno 60px */
  left: calc(0% - 40px); /* dodatno ulijevo još 20px = ukupno 40px */
  background-image: url("slike/services/services1-03.avif");
}

.service-card-h__image--1-small-3 {
  /* horizontalna, skroz lijevo, bez preklapanja drugih slika */
  width: 347px;
  height: 234px;
  bottom: 25%;
  left: calc(-70% - 100px); /* dodatno ulijevo još 50px = ukupno 100px */
  background-image: url("slike/services/services1-04.avif");
}

/* Small image positions for Card 2 */
.service-card-h__image--2-small-1 {
  top: calc(30% + 20px);
  left: calc(80% - 40px);
  right: 4%;
  background-image: url("slike/services/services1-03.avif");
}

.service-card-h__image--2-small-2 {
  width: 227px;
  height: 320px;
  bottom: calc(15% - 60px);
  left: calc(0% - 40px);
  background-image: url("slike/services/services1-04.avif");
}

.service-card-h__image--2-small-3 {
  width: 347px;
  height: 234px;
  bottom: 25%;
  left: calc(-70% - 100px);
  background-image: url("slike/services/services1-05.avif");
}

/* Small image positions for Card 3 */
.service-card-h__image--3-small-1 {
  top: calc(30% + 20px);
  left: calc(80% - 40px);
  right: 4%;
  background-image: url("slike/services/services1-04.avif");
}

.service-card-h__image--3-small-2 {
  width: 227px;
  height: 320px;
  bottom: calc(15% - 60px);
  left: calc(0% - 40px);
  background-image: url("slike/services/services1-05.avif");
}

.service-card-h__image--3-small-3 {
  width: 347px;
  height: 234px;
  bottom: 25%;
  left: calc(-70% - 100px);
  background-image: url("slike/services/services1-01.avif");
}

/* Small image positions for Card 4 */
.service-card-h__image--4-small-1 {
  top: calc(30% + 20px);
  left: calc(80% - 40px);
  right: 4%;
  background-image: url("slike/services/services1-05.avif");
}

.service-card-h__image--4-small-2 {
  width: 227px;
  height: 320px;
  bottom: calc(15% - 60px);
  left: calc(0% - 40px);
  background-image: url("slike/services/services1-01.avif");
}

.service-card-h__image--4-small-3 {
  width: 347px;
  height: 234px;
  bottom: 25%;
  left: calc(-70% - 100px);
  background-image: url("slike/services/services1-02.avif");
}

/* Small image positions for Card 5 */
.service-card-h__image--5-small-1 {
  top: calc(30% + 20px);
  left: calc(80% - 40px);
  right: 4%;
  background-image: url("slike/services/services1-01.avif");
}

.service-card-h__image--5-small-2 {
  width: 227px;
  height: 320px;
  bottom: calc(15% - 60px);
  left: calc(0% - 40px);
  background-image: url("slike/services/services1-02.avif");
}

.service-card-h__image--5-small-3 {
  width: 347px;
  height: 234px;
  bottom: 25%;
  left: calc(-70% - 100px);
  background-image: url("slike/services/services1-03.avif");
}

/* Small image positions for Card 6 */
.service-card-h__image--6-small-1 {
  top: calc(30% + 20px);
  left: calc(80% - 40px);
  right: 4%;
  background-image: url("slike/services/services1-02.avif");
}

.service-card-h__image--6-small-2 {
  width: 227px;
  height: 320px;
  bottom: calc(15% - 60px);
  left: calc(0% - 40px);
  background-image: url("slike/services/services1-03.avif");
}

.service-card-h__image--6-small-3 {
  width: 347px;
  height: 234px;
  bottom: 25%;
  left: calc(-70% - 100px);
  background-image: url("slike/services/services1-04.avif");
}

/* Content Elements */
.service-card-h__title {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  padding: 0;
  position: relative;
}

.service-card-h__title-line {
  display: inline-block;
}

.service-card-h__title-line--primary {
  font-family: "Chloe", "Bodoni Moda", "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card-h__title-line--secondary {
  font-family: "Bodoni Moda", "Playfair Display", serif;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.service-card-h__tagline {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(229, 231, 235, 0.7);
  font-weight: 500;
  max-width: 100%;
  margin: 0 0 30px 0;
  padding: 0;
  align-self: start;
  font-weight: 500;
}

.service-card-h__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 40;
  --service-text-shift-x: 10px;
  --service-text-shift-y: 40px;
  transform: translate(var(--service-text-shift-x), var(--service-text-shift-y));
  width: min(560px, 72vw);
  max-width: 560px;
}

.service-card-h__text::before {
  content: "WINKLA STUDIO";
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #a855f7;
  display: block;
}

@media (min-width: 1025px) {
  .service-card-h__text {
    --service-text-shift-x: -100px;
    --service-text-shift-y: 150px;
    max-width: 560px;
    text-align: left;
  }
}

.service-card-h__cta {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 280px;
  height: 40px;
  font-size: 16px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 16px;
  left: 30%;
  bottom: -16%;
  background: transparent;
  border-radius: 0;
  border: 0px solid rgba(248, 250, 252, 0.38);
  color: #f9fafb;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),         /* jači oštri rub */
    0 20px 55px rgba(15, 23, 42, 0.95);    /* jača i dublja sjena ispod gumba */
  backdrop-filter: blur(18px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
  z-index: 30;
  overflow: hidden;
  align-self: flex-start;
}

/* Fine-tune CTA vertical position per card on desktop so they visually match card 1 */
@media (min-width: 1025px) {
  .card-h--1 .service-card-h__cta {
    bottom: -31.3%;
  }
  .card-h--2 .service-card-h__cta {
    bottom: -31.3%;
  }
  .card-h--3 .service-card-h__cta {
    bottom: -26%;
  }
}

.service-card-h__cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glow-x, 0%) var(--glow-y, 0%),
    rgba(168, 85, 247, 0.18),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card-h__cta::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(168, 85, 247, 0.35),
    transparent var(--glow-radius, 58%)
  );
  opacity: var(--glow-outer-opacity, 0);
  filter: blur(18px);
  transition: opacity 0.18s ease;
}

.service-card-h__cta:hover {
  background: transparent;
  border-color: rgba(248, 250, 252, 0.9);
  /* zadrži istu osnovnu sjenu i poziciju gumba; samo glow animacija se mijenja */
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 14px 40px rgba(15, 23, 42, 0.85);
}

.service-card-h__cta:hover::before {
  opacity: 1;
}

.service-card-h__cta-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card-h__cta:hover .service-card-h__cta-icon {
  transform: translateX(4px);
}

.service-card-h__cta span,
.service-card-h__cta {
  position: relative;
}

/* Hover scale effects removed - images are now at full size by default */

.services-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.services-modal.is-open {
  display: block;
}

.services-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.services-modal__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 420px;
  max-height: 260px;
  padding: 24px 24px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.services-modal__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.96);
}

.services-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  font-size: 20px;
  cursor: pointer;
}

.doc-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.doc-modal.is-open {
  display: block;
}

.doc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
}

.doc-modal__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 860px;
  max-height: 80vh;
  padding: 24px 24px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #f9fafb;
}

.doc-modal__body {
  overflow: auto;
  max-height: calc(80vh - 80px);
  padding-right: 6px;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.7;
}

/* Normalize Word-exported HTML inside the document viewer */
.doc-modal__body,
.doc-modal__body * {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  color: #f1f5f9 !important;
  background: transparent !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.doc-modal__body p,
.doc-modal__body li,
.doc-modal__body div {
  color: #e5e7eb !important;
}

.doc-modal__body h1,
.doc-modal__body h2,
.doc-modal__body h3,
.doc-modal__body h4,
.doc-modal__body h5,
.doc-modal__body h6 {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.doc-modal__body a {
  color: #a855f7 !important;
  text-decoration: underline;
}

.doc-modal__body table {
  width: 100%;
  border-collapse: collapse;
}

.doc-modal__body th,
.doc-modal__body td {
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  padding: 8px;
}

.doc-modal__body h1,
.doc-modal__body h2,
.doc-modal__body h3 {
  color: #ffffff;
}

.doc-modal__body a {
  color: #a855f7;
  text-decoration: none;
}

/* Better layout for GDPR / Word HTML inside modal: spacing & lists */
.doc-modal__body {
  line-height: 1.6;
  font-size: 15px;
}

.doc-modal__body p {
  margin-top: 0;
  margin-bottom: 0.9em;
}

.doc-modal__body h1,
.doc-modal__body h2,
.doc-modal__body h3,
.doc-modal__body h4,
.doc-modal__body h5,
.doc-modal__body h6 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.doc-modal__body h1:first-child,
.doc-modal__body h2:first-child,
.doc-modal__body h3:first-child,
.doc-modal__body h4:first-child,
.doc-modal__body h5:first-child,
.doc-modal__body h6:first-child {
  margin-top: 0;
}

.doc-modal__body ul,
.doc-modal__body ol {
  margin: 0 0 1.1em 1.4em;
  padding-left: 1.2em;
  list-style-position: outside;
}

.doc-modal__body ul {
  list-style-type: disc;
}

.doc-modal__body ol {
  list-style-type: decimal;
}

.doc-modal__body li {
  margin-bottom: 0.4em;
}

.doc-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  font-size: 22px;
  cursor: pointer;
}

/* ========================================
   COOKIE BANNER - DEEP ANALYSIS FIX
   ======================================== 
   
   ISSUE: Banner was appearing at bottom of page content instead of viewport
   
   ROOT CAUSES IDENTIFIED:
   1. Banner was inside .page-wrap (display: flex, flex-direction: column)
   2. Flex containers can affect fixed positioning of children
   3. Transform on parent (.page-wrap has transform: translateY)
   4. Creates new stacking context that breaks position: fixed
   
   SOLUTION:
   1. Moved banner HTML to end of <body> (outside .page-wrap)
   2. Added !important flags to override any conflicting styles
   3. Increased z-index to 99999 for maximum priority
   4. Set bottom: 0 (not 18px) for true viewport bottom
   5. Added transform: none to prevent stacking context issues
   
   ======================================== */

.cookie-banner {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 16px !important;
  display: none;
  z-index: 99999 !important;
  transform: none !important; /* Prevent stacking context issues */
  will-change: auto !important; /* Disable will-change that might interfere */
}

.cookie-banner.is-visible {
  display: block !important;
  position: fixed !important;
  bottom: 0 !important;
  transform: none !important;
}

.cookie-banner__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  padding: 16px 18px;
}

.cookie-banner__text {
  font-size: 14px;
  color: rgba(226, 232, 240, 0.9);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

.cookie-btn--primary {
  background: #a855f7;
  border-color: #a855f7;
  color: #0b0f1a;
}

.cookie-btn--ghost {
  background: transparent;
}

.cookie-btn--secondary {
  background: rgba(2, 6, 23, 0.6);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 70;
}

.cookie-modal.is-open {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
}

.cookie-modal__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 680px;
  max-height: 80vh;
  padding: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #f9fafb;
}

.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  font-size: 22px;
  cursor: pointer;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.4);
}

.cookie-toggle__title {
  font-size: 15px;
  font-weight: 700;
  color: #f9fafb;
}

.cookie-toggle__desc {
  display: block;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.8);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(100, 116, 139, 0.5);
  transition: .2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #a855f7;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Reviews Section - placeholder */
.reviews-section {
  background: transparent;
  padding: 0;
}

/* Latest Insights Section - Updated Design */
.latest-insights-section {
  padding: 120px 60px;
  background-color: #c3c3c3; /* Match body background */
  color: #111827;
  position: relative;
  height: auto;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.latest-insights-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px; /* Reduced gap between header and grid */
}

.latest-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Align bottom of title and button */
  width: 100%;
}

.latest-insights-title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.latest-insights-title {
  font-family: 'Impact', 'Anton', 'Oswald', sans-serif;
  font-size: 160px; /* Huge title */
  line-height: 0.8;
  font-weight: 400;
  text-transform: uppercase;
  color: #111827;
  margin: 0;
  letter-spacing: -0.02em;
  transform: scaleY(1.2);
}

.latest-insights-label {
  font-size: 18px;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.75); /* Orange */
  text-transform: uppercase;
  margin-top: -20px; /* Moved up */
}

.latest-insights-see-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  min-width: 200px;
  border-radius: 999px;
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  transition: all 0.3s ease;
  margin-bottom: -10px;
  position: relative;
  overflow: hidden;
}

.latest-insights-see-all::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at var(--glow-x, 0%) var(--glow-y, 0%),
      rgba(17, 24, 39, 0.18),
      transparent 55%
    );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.latest-insights-see-all::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      circle at var(--glow-x, 50%) var(--glow-y, 50%),
      rgba(17, 24, 39, 0.35),
      transparent var(--glow-radius, 58%)
    );
  opacity: var(--glow-outer-opacity, 0);
  filter: blur(18px);
  transition: opacity 0.18s ease;
}

.latest-insights-see-all:hover {
  border-color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  transform: translateY(-1px);
  color: #ffffff;
}

.latest-insights-see-all:hover::before {
  opacity: 1;
}

.latest-insights-see-all:hover::after {
  opacity: 0.9;
}

.latest-insights-see-all .arrow {
  font-size: 18px; /* Increased arrow size */
  line-height: 1;
}

.latest-insights-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.1fr; /* Featured is much larger - increased by 10% */
  gap: 16px; /* Small gap as requested */
  width: 100%;
  height: 55vh; /* Relative height */
  min-height: 480px;
  max-height: 600px;
}

/* Insight Cards Common */
.insight-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.65);
  cursor: none; /* Hide default cursor */
}

.insight-card:hover {
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 0 0 28px rgba(248, 250, 252, 0.85);
}

.latest-insights-section .insight-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(248, 250, 252, 0.7);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.65);
}

.latest-insights-section .insight-card:hover {
  border-color: rgba(248, 250, 252, 1);
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(248, 250, 252, 0.85);
}

.latest-insights-section .insight-tag {
  background: #c3c3c3;
  color: #111827;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.25);
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.latest-insights-section .insight-date,
.latest-insights-section .insight-card--standard .insight-date {
  color: rgba(17, 24, 39, 0.65);
}

.latest-insights-section .insight-card--featured .insight-title,
.latest-insights-section .insight-card--standard .insight-title {
  color: #111827;
}

.latest-insights-section .insight-excerpt {
  color: rgba(17, 24, 39, 0.7);
}

.latest-insights-section .view-blog-btn {
  border-color: rgba(17, 24, 39, 0.7);
  background: rgba(255, 255, 255, 0.35);
  color: #111827;
}

.latest-insights-section .insight-media {
  background: #c3c3c3;
  border-color: #c3c3c3;
}

.latest-insights-section .insight-card--featured .insight-card-overlay {
  background: transparent;
}

.latest-insights-section .insight-card--featured:hover .insight-card-overlay {
  background: transparent;
}

html[data-theme="dark"] .latest-insights-section {
  background-color: #020617;
  color: #f5f5f7;
}

html[data-theme="dark"] .latest-insights-title {
  color: #e2e8f0;
}

html[data-theme="dark"] .latest-insights-label {
  color: #a855f7;
}

html[data-theme="dark"] .latest-insights-see-all {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: #a855f7;
}

html[data-theme="dark"] .latest-insights-see-all:hover {
  border-color: #a855f7;
  background: #a855f7;
  color: #020617;
}

html[data-theme="dark"] .latest-insights-section .insight-card {
  background: rgba(2, 6, 23, 0.4);
  border-color: rgba(248, 250, 252, 0.8);
  box-shadow: 0 0 24px rgba(248, 250, 252, 0.55);
}

html[data-theme="dark"] .latest-insights-section .insight-card:hover {
  border-color: rgba(248, 250, 252, 1);
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(248, 250, 252, 0.85);
}

html[data-theme="dark"] .latest-insights-section .insight-tag {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

html[data-theme="dark"] .latest-insights-section .insight-date {
  color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .latest-insights-section .insight-card--standard .insight-date {
  color: #94a3b8;
}

html[data-theme="dark"] .latest-insights-section .insight-card--featured .insight-title,
html[data-theme="dark"] .latest-insights-section .insight-card--standard .insight-title {
  color: #FFFFFF;
}

html[data-theme="dark"] .latest-insights-section .insight-excerpt {
  color: #64748b;
}

html[data-theme="dark"] .latest-insights-section .view-blog-btn {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

html[data-theme="dark"] .latest-insights-section .insight-media {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .latest-insights-section .insight-card--featured .insight-card-overlay {
  background: transparent;
}

html[data-theme="dark"] .latest-insights-section .insight-card--featured:hover .insight-card-overlay {
  background: transparent;
}

/* Featured Card Styles */
.insight-card--featured .insight-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.insight-card--featured:hover .insight-card-bg {
  transform: scale(1.03);
}

.insight-card--featured .insight-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  z-index: 1;
}

.insight-card--featured .insight-card-content {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.insight-tag {
  align-self: flex-start;
  background: #FFFFFF;
  color: #000000;
  font-size: 13px; /* Increased from 11px */
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.25);
  border: 1px solid rgba(17, 24, 39, 0.1);
  position: absolute; /* Ensure consistent positioning */
  top: 16px;
  left: 16px;
}

/* Dark theme for global insight-tag */
html[data-theme="dark"] .insight-tag {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Adjust for featured card */
.insight-card--featured .insight-tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.insight-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto; /* Ensure bottom alignment */
}

.insight-date {
  font-family: 'Arial', sans-serif;
  font-size: 14px; /* Increased from 12px */
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.insight-card--featured .insight-date {
  margin-bottom: 8px; /* Move up relative to title */
}

.insight-card--featured .insight-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  font-size: 32px;
}

/* View Blog Button (Hover Effect) */
.view-blog-btn {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%); /* Center on cursor coordinates */
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2); /* Transparent dark */
  backdrop-filter: blur(2px);
  border-radius: 99px;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none; /* Ignore mouse events */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  will-change: transform;
}

.view-blog-btn .arrow {
  font-size: 16px;
  line-height: 1;
}

/* Hover visibility */
.insight-card:hover .view-blog-btn {
  opacity: 1;
}

/* Darkening Effect on Hover */
/* Featured Card Darkening */
.insight-card--featured .insight-card-overlay {
  transition: background 0.8s ease-out;
}

.insight-card--featured:hover .insight-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Standard Card Darkening (Image Only) */
.insight-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.6s ease-out;
  z-index: 1;
  pointer-events: none;
}

.insight-card--standard:hover .insight-media::after {
  background: rgba(0, 0, 0, 0.6);
}

/* Standard Card Styles */
.insight-card--standard {
  display: flex;
  flex-direction: column;
  background: transparent; /* Make transparent */
  border-radius: 8px;
  overflow: hidden;
  padding: 7px; /* Reduced padding from 12px to 7px to match articles page */
}

.insight-media {
  position: relative;
  width: 100%;
  height: 54%; /* Increased from 48% to 54% to match articles page */
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 6px; /* Round image corners */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Add border around image */
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insight-card--standard:hover .insight-media img {
  transform: scale(1.05);
}

.insight-media .insight-tag {
  position: absolute;
  top: 16px; /* Match global tag positioning */
  left: 16px; /* Match global tag positioning */
  z-index: 2;
  padding: 10px 20px;
  font-size: 13px;
}

.insight-content-standard {
  padding: 24px 4px 8px 4px; /* Adjusted padding */
  flex: 1;
  background: transparent; /* Make transparent */
  display: flex;
  flex-direction: column;
}

.insight-card--standard .insight-date {
  color: #94a3b8;
  font-size: 15px; /* Slightly larger */
  font-family: 'Arial', sans-serif;
  margin-bottom: 0;
}

.insight-card--standard .insight-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px; /* Larger title */
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  margin-top: auto; /* Push title to bottom */
  margin-bottom: 12px; /* Space between title and excerpt */
}

.insight-excerpt {
  font-size: 16px; /* Increased font size */
  line-height: 1.6;
  color: #64748b; /* Darker grey */
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Allow 3 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide local buttons on fine-pointer devices (Desktop) */
@media (pointer: fine) {
  .insight-card .view-blog-btn {
    display: none !important;
  }
}

/* Shared Blog Button (Global) - Same styles as .view-blog-btn */
.shared-blog-btn {
  position: fixed; /* Fixed relative to viewport */
  top: 0;
  left: 0;
  transform: translate(-50%, -50%); /* Centered on cursor */
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  border-radius: 99px;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none; /* Ignore mouse events */
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9999; /* Top level */
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  will-change: transform, left, top;
}

.shared-blog-btn .arrow {
  font-size: 16px;
  line-height: 1;
}

/* Responsive Styles for Insights */
@media (max-width: 1024px) {
  .latest-insights-section {
    height: auto;
    padding: 80px 24px;
  }

  .latest-insights-grid {
    height: auto;
    grid-template-columns: 1.1fr 1.1fr;
    grid-template-rows: 440px 440px;
  }
  
  .insight-card--featured {
    grid-column: span 2;
  }

  .latest-insights-title {
    font-size: 80px;
  }
}

@media (max-width: 768px) {
  .latest-insights-section {
    padding: 60px 0vw; /* Reduced padding for wider cards */
    height: auto;
    min-height: auto;
  }

  .latest-insights-container {
    gap: 32px;
  }

  .latest-insights-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
    height: auto;
    max-height: none;
  }
  
  .insight-card--featured {
    grid-column: span 1;
    height: 396px; /* Increased height */
  }

  .insight-card--standard {
    height: 418px; /* Increased height */
  }

  .latest-insights-title-wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
  }

  .latest-insights-title {
    font-size: clamp(56px, 14vw, 72px); /* Increased significantly */
    line-height: 1.1;
    text-align: center;
  }
  
  .latest-insights-label {
    font-size: 16px;
    margin-bottom: 16px;
    margin-top: 0;
    text-align: center;
    width: auto;
  }

  .latest-insights-header {
    flex-direction: column;
    align-items: center; /* Center everything */
    text-align: center;
    gap: 20px;
  }
  
  .latest-insights-see-all {
    width: auto;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 14px;
    border: 2px solid rgba(248, 250, 252, 0.7);
    box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  }

  /* Smaller fonts for cards on mobile */
  .insight-card--featured .insight-title {
    font-size: 22px; /* Decreased */
  }
  
  .insight-card--standard .insight-title {
    font-size: 18px; /* Decreased */
  }

  .insight-excerpt {
    font-size: 13px; /* Decreased */
  }

  .insight-date {
    font-size: 11px; /* Decreased */
  }
  
  .insight-tag {
    display: none; /* Hide tags on mobile */
  }

  /* Widen text in featured blog by reducing container padding */
  .insight-card--featured .insight-card-content {
    padding: 20px;
  }

  /* Mobile Blog Button Positioning & Visibility */
  .view-blog-btn {
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
  }

  /* Show button when card is active (via JS) */
  .insight-card.is-visible .view-blog-btn {
    opacity: 1;
  }

  /* Center on Featured Card - FORCE STATIC POSITION */
  .insight-card--featured .view-blog-btn {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
  }

  /* Center over Image on Standard Card - FORCE STATIC POSITION */
  .insight-card--standard .view-blog-btn {
    top: 24% !important; /* Approx center of top half */
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
  }

  /* Remove hover effect on mobile to prevent sticky states */
  .insight-card:hover .view-blog-btn {
    opacity: 0; 
  }
  
  /* Re-enable opacity 1 if visible class is present */
  .insight-card.is-visible:hover .view-blog-btn {
    opacity: 1;
  }

  /* Add darkening effect for active mobile cards */
  /* Featured Card Darkening */
  .insight-card--featured.is-visible .insight-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
  }

  /* Standard Card Darkening (Image Only) */
  .insight-card--standard.is-visible .insight-media::after {
    background: rgba(0, 0, 0, 0.6);
  }
}


/* FAQ Section */
.faq-section {
  padding: 120px 60px 120px 60px;
  background-color: #020617; /* Usklađeno s ostatkom stranice */
  position: relative;
  overflow: visible; /* Changed from hidden to allow sticky to work if needed, though sticky works inside */
  min-height: auto; /* FAQ sekcija uvijek visoka kao ekran */
  display: flex;
  align-items: flex-start; /* Changed from center to prevent shifting */
}

html:not([data-theme="dark"]) .faq-section {
  background-color: #c3c3c3;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: center; /* Vertically center the FAQ content */
  width: 100%;
}

.faq-header {
  position: relative; /* Changed from sticky to relative so it scrolls WITH the content */
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Ensure text is centered */
  align-self: start;
  z-index: 1;
  margin-top: 100px; /* Push down to visually center relative to the closed list */
  margin-left: -150px; /* Shift text and light slightly to the right */
}

.faq-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.9) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(80px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

html:not([data-theme="dark"]) .faq-header::before {
    background: radial-gradient(circle, rgba(17, 24, 39, 0.3) 0%, rgba(17, 24, 39, 0.1) 50%, transparent 70%);
    mix-blend-mode: normal;
}

.faq-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: #ECECEC;
  line-height: 1;
  margin-bottom: 24px;
}

.faq-subtitle {
  font-size: 16px;
  color: rgba(236, 236, 236, 0.7);
}

.faq-contact-link {
  color: #F97316; /* Narančasta boja za link */
  text-decoration: none;
  font-weight: 600;
}

.faq-contact-link:hover {
  text-decoration: underline;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: clamp(560px, 60vh, 760px); /* više prostora bez scroll trake */
  position: relative;
}

.faq-item {
  border: 2.5px solid rgba(248, 250, 252, 0.7);
  border-radius: 20px;
  padding: 6px 28px;
  background: transparent;
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.9);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Changed to flex-start for multi-line support */
  padding: 18px 0;
  cursor: pointer;
  list-style: none; /* Uklanja defaultnu strelicu */
  font-size: 20px;
  font-weight: 500;
  color: rgba(236, 236, 236, 0.9);
  transition: color 0.2s ease;
  gap: 20px; /* Prevent text colliding with icon */
}

html:not([data-theme="dark"]) .faq-question {
  color: #111827;
}

.faq-question::-webkit-details-marker {
  display: none; /* Sakriva defaultnu strelicu na Chrome/Safari */
  text-align: left;
}

.faq-item[open] {
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 0 0 22px rgba(248, 250, 252, 1);
  background: transparent;
  border-radius: 20px;
}

.faq-item[open] .faq-question {
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .faq-item[open] .faq-question {
  color: #111827;
}

.faq-question:hover {
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .faq-question:hover {
  color: #111827;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Prevent icon shrinking */
  margin-top: 6px; /* Align with first line of text */
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #a855f7;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

html:not([data-theme="dark"]) .faq-icon::before,
html:not([data-theme="dark"]) .faq-icon::after {
  background-color: #111827;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item.closing .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease;
  padding: 0 0 0 0;
  opacity: 0;
  margin-left: clamp(20px, 3vw, 32px);
}

.faq-item[open] .faq-answer {
  padding: 6px 0 18px 0;
  opacity: 1;
}

.faq-answer p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(236, 236, 236, 0.7);
  max-width: 90%;
}

html:not([data-theme="dark"]) .faq-answer p {
  color: #111827;
}

/* Larger Text on Desktop */
@media (min-width: 1024px) {
  .faq-title {
    font-size: 140px;
  }
  .faq-subtitle {
    font-size: 18px;
  }
  .faq-question {
    font-size: 22px;
  }
  .faq-answer p {
    font-size: 18px;
  }
}

/* FAQ Scroll Animation */
.faq-header,
.faq-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-header.is-visible,
.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive FAQ */
@media (max-width: 900px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-header {
    position: static;
    text-align: center;
    align-items: center; /* Center content on mobile */
    margin-top: 0;
  }
  .faq-title {
    font-size: 80px;
  }
}

@media (max-width: 640px) {
  .faq-section {
    padding: 60px 24px;
  }

  .faq-title {
    font-size: 70px; /* Increased from 60px */
    margin-bottom: 8px; /* Reduced space between title and text */
  }

  .faq-subtitle {
    font-size: 18px; /* Increased from 16px */
    max-width: 100%;
  }

  .faq-header {
    text-align: center; /* Center align on mobile as requested */
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    margin-left: 0; /* Reset margin on mobile to allow true centering */
  }
  
  .faq-header::before {
    width: 300px;
    height: 300px;
    opacity: 0.9;
    left: 50%;
    top: 15%; /* Move light behind the text */
    transform: translate(-50%, -50%); /* Center horizontally and vertically */
  }

  .faq-question {
    font-size: 18px; /* Increased from 16px */
    padding: 18px 0;
  }

  .faq-answer p {
    font-size: 16px; /* Increased from 14px */
    line-height: 1.6;
    max-width: 100%; /* Full width text */
    padding-right: 0;
  }
  
  .faq-item[open] .faq-answer {
    padding-bottom: 18px;
  }
}


/* Responsive Services */
@media (max-width: 1024px) {
  .services-horizontal__canvas {
    gap: 8rem;
  }

  .service-card-h {
    grid-template-columns: 1fr;
    gap: 35px;
    min-height: auto;
  }

  .service-card-h__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .service-card-h__title,
  .service-card-h__tagline,
  .service-card-h__cta {
    padding: 0;
    margin: 0;
  }

  .service-card-h__title {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .service-card-h__visual {
    height: 100%;
    min-height: 480px;
    order: -1;
  }

  .service-card-h__image--main {
    width: 396px;
    height: 540px;
  }

  .service-card-h__image--small {
    width: 164px;
    height: 164px;
  }
}

@media (max-width: 768px) {
  .services-horizontal__inner {
    height: 120vh;
    min-height: 120vh;
    padding: 15px 18px 0 18px;
  }

  .services-horizontal__header {
    display: none; /* sakriven i na mobilnom */
  }

  .services-horizontal__title {
    font-size: 42px;
  }

  .services-horizontal__title-highlight {
    font-size: 52px;
  }

  .services-horizontal__subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .services-horizontal__cta {
    font-size: 11px;
    padding: 14px 24px;
  }

  .services-horizontal__canvas {
    gap: 6rem;
    padding-right: 100px;
  }

  .service-card-h {
    flex: 0 0 85vw;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 52px;
    min-height: 120vh;
  }

  .service-card-h__title {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .service-card-h__tagline {
    font-size: 14px;
    max-width: 100%;
    line-height: 1.6;
  }

  .service-card-h__visual {
    height: 100%;
    min-height: 120vh;
  }

  .service-card-h__image--main {
    width: 331px;
    height: 454px;
  }

  .service-card-h__image--small {
    width: 184px;
    height: 184px;
  }

  .service-card-h__content {
    gap: 28px;
    padding: 0;
    padding-top: 15vh;
    justify-content: flex-start;
  }

  /* Reduce offset for small images on mobile */
  .service-card-h__image--small[class*="-small-1"] {
    top: -3% !important;
    right: -3% !important;
  }

  .service-card-h__image--small[class*="-small-2"] {
    bottom: -3% !important;
    left: -5% !important;
  }

  .service-card-h__image--small[class*="-small-3"] {
    bottom: -3% !important;
    right: -3% !important;
  }
}

.work-nav-text {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

html[data-theme="dark"] .work-nav-text {
  color: rgba(148, 163, 184, 0.5);
}

.work-nav-item.active .work-nav-text {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  opacity: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .work-nav-item.active .work-nav-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.work-nav-item:hover .work-nav-text {
  color: rgba(17, 24, 39, 0.8);
  opacity: 0.9;
  transform: translateX(2px);
}

html[data-theme="dark"] .work-nav-item:hover .work-nav-text {
  color: rgba(248, 250, 252, 0.9);
}

/* Project Info in Bottom Left */
.work-project-info {
  position: relative; /* Promjena na relativno pozicioniranje */
  margin-top: 250px; /* Stvori razmak od navigacije iznad */
  width: auto;
  z-index: 10;
}

.work-project-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  will-change: transform, opacity;
}

html[data-theme="dark"] .work-project-title {
  color: #f5f5f7;
}

.work-project-description {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(17, 24, 39, 0.7);
  font-weight: 400;
  max-width: 350px;
  will-change: transform, opacity;
}

html[data-theme="dark"] .work-project-description {
  color: rgba(148, 163, 184, 0.75);
}

/* Right Panel - Scrolling Images */
.work-images-panel {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 40px 56px 120px 100px; /* Povećan lijevi padding */
  perspective: 1500px;
  position: relative;
  z-index: 20;
}

.work-image-item {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.work-image-wrapper {
  width: 90%;
  max-width: 1000px;
  height: auto;
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  will-change: transform, opacity;
  margin: 0 auto;
}

.work-image-wrapper .work-image-mask,
.work-image-wrapper .work-scroll-image {
  cursor: pointer;
}

.work-scroll-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* (hover overlay/CTA for Latest Work removed per design change) */

.work-image-info {
  margin-bottom: 24px;
}

.work-image-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.work-image-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
}

.work-image-cta {
  background: rgba(15, 23, 42, 0.2);
  color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  align-self: flex-start;
}

.work-image-cta:hover {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(248, 250, 252, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Hover-follow View Project button inside Latest Work images */
.work-image-hover-cta {
  position: absolute;
  left: var(--work-cta-x, 50%);
  top: var(--work-cta-y, 50%);
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
  opacity: 0;
  z-index: 30; 
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.work-image-item:hover .work-image-hover-cta.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-image-hover-cta .arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.work-image-hover-cta:hover .arrow {
  transform: translateY(-1px) rotate(45deg) scale(1.1);
}

/* Responsive Design for Latest Work */
@media (max-width: 1100px) {
  .latest-work-title {
    font-size: 100px;
  }
  
  .latest-work-container {
    grid-template-columns: 280px 1fr;
  }

  .work-sidebar {
    padding: 30px 0 30px 30px;
  }
  
  .work-images-panel {
    padding: 40px 24px 120px 40px;
  }
  
  .work-current-number {
    font-size: 120px;
  }

  .work-project-info {
    width: 100%;
  }

  .work-project-title {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .latest-work {
    margin-top: 80px;
  }
  
  .latest-work-title {
    font-size: 80px;
  }
  
  .latest-work-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .work-sidebar-content {
    margin: 0 auto;
    transform: none;
  }
  
  .work-sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding: 40px 24px;
  }
  
  .work-sidebar-content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  
  .work-number-display {
    height: 80px;
    padding: 0 18px;
    border: 2px solid rgba(248, 250, 252, 0.8);
    background: rgba(248, 250, 252, 0.15);
    box-shadow: 
      0 0 25px rgba(248, 250, 252, 0.5),
      0 0 50px rgba(248, 250, 252, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
  }
  
  .work-current-number {
    font-size: 80px;
  }
  
  .work-navigation {
    flex-direction: row;
    gap: 24px;
    margin-top: 0;
    position: relative;
    top: auto;
  }

  .work-number-display {
    position: relative;
    top: auto;
  }

  .work-project-info {
    position: relative;
    margin-left: auto;
    bottom: auto;
    width: auto;
  }

  .work-project-title {
    font-size: 28px;
  }
  
  .work-images-panel {
    padding: 0 24px 80px;
    gap: 80px;
  }
  
  .work-image-item {
    min-height: 36vh;
  }
}

@media (max-width: 640px) {
  .latest-work {
    margin-top: 60px;
  }
  
  .latest-work-header {
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
  }

  .latest-work-header .about-link {
    white-space: nowrap;
    padding: 16px 32px;
  }
  
  .latest-work-title {
    font-size: 48px;
  }
  
  .latest-work-header {
    margin-bottom: 40px;
  }
  
  .work-sidebar {
    padding: 0 16px;
  }
  
  .work-sidebar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .work-number-display {
    height: 60px;
    padding: 0 14px;
    border: 2px solid rgba(248, 250, 252, 0.8);
    background: rgba(248, 250, 252, 0.15);
    box-shadow: 
      0 0 20px rgba(248, 250, 252, 0.4),
      0 0 40px rgba(248, 250, 252, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
  }
  
  .work-current-number {
    font-size: 60px;
  }
  
  .work-navigation {
    flex-direction: column;
    gap: 12px;
  }
  
  .work-nav-item.active .work-nav-text {
    font-size: 22px;
    font-weight: 700;
  }
  
  .work-images-panel {
    padding: 0 16px 60px;
    gap: 60px;
  }
  
  .work-image-item {
    min-height: 30vh;
  }
  
  .work-image-title {
    font-size: 32px;
  }
  
  .work-image-subtitle {
    font-size: 14px;
  }
  
  .work-image-cta {
    padding: 12px 24px;
    font-size: 12px;
  }
}

/* ========================================
   SERVICE DETAIL PAGE STYLES
   ======================================== */

.service-detail-page .brand-mark {
  transform: translate(0px, 0px) scale(1.6) !important;
  letter-spacing: 0.04em !important;
}

.service-detail-section {
  padding: 120px 0 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.service-detail-container {
  padding: 0 60px;
}

.service-detail-header {
  text-align: center;
  margin-bottom: 80px;
}

.service-detail-back {
  display: inline-block;
  color: rgba(148, 163, 184, 0.8);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.service-detail-back:hover {
  color: #a855f7;
}

.service-detail-title {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 24px;
}

.service-detail-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.service-detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-detail-description {
  color: rgba(248, 250, 252, 0.9);
}

.service-detail-description h2 {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 24px;
  margin-top: 0;
}

.service-detail-description h3 {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #f9fafb;
  margin: 40px 0 16px 0;
}

.service-detail-description p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-detail-description ul,
.service-detail-description ol {
  margin: 16px 0 24px 0;
  padding-left: 24px;
}

.service-detail-description li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.service-detail-description li strong {
  color: #a855f7;
}

/* Service images */
.service-detail-hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  margin: 40px 0 60px 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.service-detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 60px 0;
}

.service-feature-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.service-feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.2);
}

.service-feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.service-feature-title {
  font-size: 20px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 12px;
}

.service-feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.8);
}

/* Responsive Design for Service Detail */
@media (max-width: 1024px) {
  .service-detail-container {
    padding: 0 40px;
  }
  
  .service-detail-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .service-detail-hero-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .service-detail-section {
    padding: 100px 0 60px;
  }
  
  .service-detail-container {
    padding: 0 24px;
  }
  
  .service-detail-header {
    margin-bottom: 60px;
  }
  
  .service-detail-hero-image {
    height: 250px;
    margin: 30px 0 40px 0;
  }
  
  .service-feature-card {
    padding: 24px;
  }
}

/* Global Content Scale Down (90%) - Applied to inner containers to keep sections full size */
.nav-left,
.nav-links,
.nav-right,
.hero > *,
.about-container,
.services-inner,
.services-horizontal__header,
.services-horizontal__canvas,
.proba-content,
.work-sidebar-content,
.work-images-panel,
.latest-insights-container,
.faq-container,
.contact-inner,
.footer-main,
.footer-bottom,
.articles-header-container,
.articles-grid-container,
.service-detail-container,
.service-hero__overlay-inner,
#service-detail-content,
.project-hero__overlay-inner,
#project-detail-content,
.about-hero-overlay,
.about-mission,
#about-story-content,
.about-images,
.about-details,
.article-hero-overlay,
.all-work-section,
#article-detail-content,
.article-detail-hero,
.article-detail-content {
  zoom: 0.9;
}

.work-sidebar-content {
  zoom: 1;
}

.cf-reveal {
  opacity: var(--cf-reveal-progress, 0);
  transform: translateY(calc((1 - var(--cf-reveal-progress, 0)) * 28px));
  transition: none;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .cf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   LIGHT MODE - ABOUT SECTION
   ======================================== */

html[data-theme="light"] .about-section {
  background: #c3c3c3 !important;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.about-section {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="light"] .about-line {
  background-color: rgba(100, 116, 139, 0.2);
  transition: background-color 0.3s ease;
}

.about-line {
  transition: background-color 0.3s ease;
}

html[data-theme="light"] .about-line-highlight {
  background: linear-gradient(180deg, 
    rgba(139, 92, 246, 0) 0%,
    rgba(139, 92, 246, 0.5) 15%,
    rgba(139, 92, 246, 0.8) 50%,
    rgba(139, 92, 246, 0.5) 85%,
    rgba(139, 92, 246, 0) 100%);
  box-shadow: 
    0 0 6px rgba(139, 92, 246, 0.5),
    0 0 12px rgba(139, 92, 246, 0.3);
}

html[data-theme="light"] .about-image {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

html[data-theme="light"] .about-image::after {
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.1);
}

html[data-theme="light"] .about-content {
  color: #0f172a;
}

html[data-theme="light"] .about-badge {
  color: #0a0a0a;
  font-weight: 700;
}

.about-badge,
.about-name,
.about-title,
.about-text,
.about-link,
.about-image {
  transition: all 0.3s ease;
}

html[data-theme="light"] .about-name {
  color: #6d28d9;
  font-weight: 800;
  -webkit-text-stroke: 0.5px #5b21b6;
}

html[data-theme="light"] .about-title {
  color: #0a0a0a;
  font-weight: 800;
}

html[data-theme="light"] .about-text {
  color: #1a1a1a;
  font-weight: 600;
}

html[data-theme="light"] .about-text strong {
  color: #0a0a0a;
  font-weight: 800;
}

html[data-theme="light"] .about-link {
  border: 3px solid #6d28d9;
  color: #000000;
  font-weight: 800;
  background: rgba(109, 40, 217, 0.08);
}

html[data-theme="light"] .about-link:hover {
  border-color: #5b21b6;
  background: rgba(109, 40, 217, 0.1);
  color: #0a0a0a;
}

html[data-theme="light"] .about-eyebrow {
  color: #6d28d9;
  font-weight: 800;
  -webkit-text-stroke: 0.5px #5b21b6;
}

html[data-theme="light"] .about-stat-value {
  color: #6d28d9;
  font-weight: 900;
  -webkit-text-stroke: 0.5px #5b21b6;
}

html[data-theme="light"] .about-stat-label {
  color: #0a0a0a;
  font-weight: 800;
}

/* ========================================
   LIGHT MODE - SERVICES HORIZONTAL
   ======================================== */

html[data-theme="light"] .services-horizontal {
  background: #c3c3c3;
  color: #000000;
}

html[data-theme="light"] .services-horizontal__decoration {
  opacity: 0.03;
}

html[data-theme="light"] .services-horizontal__brand {
  color: #6d28d9;
  font-weight: 800;
  -webkit-text-stroke: 0.3px #5b21b6;
}

html[data-theme="light"] .services-horizontal__title {
  color: #0a0a0a;
  font-weight: 800;
}

html[data-theme="light"] .services-horizontal__title-highlight {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

html[data-theme="light"] .services-horizontal__subtitle {
  color: #1a1a1a;
  font-weight: 600;
}

html[data-theme="light"] .services-horizontal__cta {
  background: rgba(109, 40, 217, 0.08);
  border: 3px solid #6d28d9;
  color: #000000;
  font-weight: 800;
}

html[data-theme="light"] .services-horizontal__cta:hover {
  border-color: #5b21b6;
  background: rgba(109, 40, 217, 0.1);
}

html[data-theme="light"] .service-card-h {
  color: #0a0a0a;
}

html[data-theme="light"] .service-card-h__title {
  color: #0a0a0a;
  font-weight: 800;
}

html[data-theme="light"] .service-card-h__tagline {
  color: #0a0a0a;
  font-weight: 700;
}

html[data-theme="light"] .service-card-h__text {
  color: #1a1a1a;
  font-weight: 600;
}

html[data-theme="light"] .service-card-h__text::before {
  color: #6d28d9;
  font-weight: 800;
  -webkit-text-stroke: 0.3px #5b21b6;
}

html[data-theme="light"] .service-card-h__cta {
  background: rgba(109, 40, 217, 0.08);
  border: 3px solid #6d28d9;
  color: #000000;
  font-weight: 800;
}

html[data-theme="light"] .service-card-h__cta:hover {
  border-color: #5b21b6;
  background: rgba(109, 40, 217, 0.1);
}

html[data-theme="light"] .service-card-h__image::after {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.3), rgba(248, 250, 252, 0.7));
}

html[data-theme="light"] .services-modal__backdrop {
  background: rgba(248, 250, 252, 0.95);
}

html[data-theme="light"] .services-modal__content {
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15);
}

html[data-theme="light"] .services-modal__title {
  color: #0a0a0a;
  font-weight: 800;
}

html[data-theme="light"] .services-modal__text {
  color: #1a1a1a;
  font-weight: 600;
}

html[data-theme="light"] .services-modal__close {
  color: #0a0a0a;
  font-weight: 700;
  background: rgba(109, 40, 217, 0.05);
  border: 1px solid #6d28d9;
}

html[data-theme="light"] .services-modal__close:hover {
  background: rgba(109, 40, 217, 0.1);
  border-color: #5b21b6;
}
