/* ========================================
   SERVICES PROBA SECTION (Lando Style)
   ======================================== */

.services-proba {
  height: auto; /* Height will be set by JS */
  width: 100%;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: #020617; /* Updated to site's dark blue */
  color: #f1f5f9;
  position: relative;
  z-index: 10;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: visible; /* Allow vertical overflow for sticky */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.services-proba__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #020617; /* Updated to site's dark blue */
  transition: background-color 0.3s ease;
}

/* Light Mode */
html[data-theme="light"] .services-proba {
  background-color: #c3c3c3;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="light"] .services-proba__sticky {
  background-color: #c3c3c3;
  transition: background-color 0.3s ease;
}

.services-proba__track {
  display: flex;
  /* 4 slides: Intro + 3 Services */
  width: 500vw; 
  height: 100%;
  will-change: transform;
}

.services-proba__bg-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  width: 100%; 
  height: 100%;
}

.services-proba__bg-lines svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SLIDE STYLES */
.proba-slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  z-index: 1;
}

.proba-content {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  position: relative;
}

/* LAYOUT SYSTEMS - Each service has unique layout */

/* === THEME 1: WEB DESIGN (Luxury / Digital Couture) === */
.layout-lux {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible; /* Allow elements to float freely */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* No separate background */
}

/* Ambient Background - Removed separate BG color, kept subtle lighting */
.lux-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lux-spotlight {
  display: none; /* Removed as requested */
}

/* Main Container */
.lux-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  height: 100%; /* Force full height so border spans properly */
  display: grid;
  grid-template-columns: 1.6fr 1fr; /* Increased left column width */
  gap: 80px;
  padding: 0 40px;
  /* align-items: center; Removed to allow stretching */
}

/* Left Content (Now on Right via Order) */
.lux-content {
  display: flex;
  flex-direction: column;
  /* gap: 32px; Removed to match Social Media spacing logic (margins) */
  order: 2; /* Moves text to the right */
  z-index: 1;
  align-self: stretch;  /* Fill full height of grid */
  justify-content: center; /* Center content vertically */
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 40px;
}

.lux-text-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  position: relative;
  width: 100%;
}

.title-spotlight-right {
  position: absolute;
  top: -25%;
  right: 15%;
  transform: translate(50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.9) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  mix-blend-mode: screen; /* Blend nicely with dark bg */
}

.lux-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  flex-direction: row-reverse; /* Flip label and line */
  margin-bottom: 20px; /* Added for spacing if label is used */
}

.lux-line {
  width: 40px;
  height: 1px;
  background: #a855f7;
}

.lux-title {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  align-items: flex-end; /* Right align title parts */
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(50px, 6vw, 100px);
  font-weight: 700;
  margin-bottom: 20px;
}

.editorial-outline {
  color: transparent;
  -webkit-text-stroke: 1px #e2e8f0;
}

.editorial-filled {
  color: #e2e8f0;
}

.serif-font {
  display: none; 
}

.sans-font {
  display: none;
}

.lux-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 400px; /* Matched to editorial-desc */
  margin-bottom: 40px; /* Matched to editorial-desc */
  border-right: none;
  border-left: none;
  padding-right: 0;
  padding-left: 0;
}

.lux-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  text-decoration: none;
}

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

.lux-btn .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  transition: all 0.3s ease;
  font-size: 18px;
}

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

.lux-btn:hover .btn-icon {
  background: #a855f7;
  color: #020617;
  border-color: #a855f7;
  transform: translateX(10px);
}

/* Right Visual (Premium Stage) */
.lux-visual {
  position: relative;
  height: 640px; /* Reduced height to bring elements vertically closer */
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.lux-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1100px; /* Increased stage width */
  max-height: 750px;
  /* No rotation for better readability */
}

/* Premium Decoration Grid behind visual */
.lux-grid-premium {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  border-radius: 4px;
}

/* Code Card - Top Left */
.code-card {
  position: absolute;
  top: 0; /* Flush top to match flush left */
  left: 0;
  width: 48%; /* Increased width */
  height: auto;
  /* aspect-ratio removed to eliminate empty space */
  background: #0f172a;
  border: 1px solid #a855f7; /* Permanent orange border */
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); /* Permanent glow */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  /* Transitions removed as hover effects are disabled */
}

.code-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-dots {
  display: flex;
  gap: 8px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }

.code-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
}

.code-body {
  padding: 18px; /* Slightly more padding */
  font-family: 'Courier New', monospace;
  font-size: 14px; /* Increased font size */
  line-height: 1.8;
  color: #cbd5e1;
  background: rgba(0,0,0,0.2);
  flex: 1;
}

.code-line { display: block; margin-bottom: 4px; white-space: pre; }
.c-tag { color: #c084fc; font-weight: bold; }
.c-attr { color: #94a3b8; font-style: italic; }
.c-val { color: #bfdbfe; }
.c-txt { color: #fff; }

/* Visual Card - Bottom Right */
.visual-card {
  position: absolute;
  bottom: 0; /* Flush bottom to match flush right */
  right: 0;
  width: 58%; /* Increased width */
  height: auto;
  aspect-ratio: 16/10;
  background: radial-gradient(circle at center, #1e293b, #0f172a);
  border: 1px solid #c084fc; /* Permanent purple border */
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); /* Permanent glow */
  overflow: hidden;
  z-index: 20;
  /* Transitions removed */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D GYROSCOPE ANIMATION */
.lux-gyro-scene {
  width: 280px; /* Increased container size */
  height: 280px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.gyro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  transform-style: preserve-3d;
}

.ring-outer {
  width: 160px;
  height: 160px;
  border-color: rgba(168, 85, 247, 0.6);
  animation: spinX 8s linear infinite;
}

.ring-middle {
  width: 120px;
  height: 120px;
  border-color: rgba(168, 85, 247, 0.8);
  animation: spinY 12s linear infinite;
}

.ring-inner {
  width: 80px;
  height: 80px;
  border: 2px solid #c084fc;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  animation: spinZ 6s linear infinite;
}

.gyro-core {
  width: 20px;
  height: 20px;
  background: #c084fc;
  border-radius: 50%;
  box-shadow: 0 0 40px 10px rgba(168, 85, 247, 0.8);
  animation: pulseCore 3s ease-in-out infinite alternate;
}

@keyframes spinX {
  from { transform: rotateX(0deg) rotateY(10deg); }
  to { transform: rotateX(360deg) rotateY(10deg); }
}

@keyframes spinY {
  from { transform: rotateY(0deg) rotateX(10deg); }
  to { transform: rotateY(360deg) rotateX(10deg); }
}

@keyframes spinZ {
  from { transform: rotateZ(0deg) rotateX(20deg); }
  to { transform: rotateZ(360deg) rotateX(20deg); }
}

@keyframes pulseCore {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* Connecting Line (The Process) */
.lux-connector {
  position: absolute;
  top: 20%; /* Adjusted down slightly to align with code card in shorter container */
  left: 47%; /* Shifted right due to wider code card */
  width: 10%; /* Spans the gap */
  height: 180px;
  z-index: 5;
  pointer-events: none;
}

.connector-path-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Floating Decor */
.lux-orb {
  position: absolute;
  top: 20px; /* Moved down */
  right: 5%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at 30% 30%, #c084fc, #7c2d12);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.4);
  z-index: 1;
  animation: orbFloat 6s ease-in-out infinite;
}

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

.lux-tag {
  position: absolute;
  padding: 6px 14px;
  background: #0f172a;
  border: 1px solid #c084fc;
  border-radius: 4px;
  color: #c084fc;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 30;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tag-1 { 
  top: -15px; 
  left: 10%; 
  transform: none; /* Reset rotation */
}

.tag-2 { 
  bottom: -15px; 
  right: 10%; 
  transform: none; 
  background: #c084fc; 
  color: #000; 
  border: none; 
}

/* Responsive */
@media (max-width: 1024px) {
  .lux-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .lux-content {
    align-items: center;
    border-left: none;
    padding-left: 0;
  }

  .lux-desc {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }
  
  .lux-visual {
    height: 500px;
  }
  
  .lux-3d-stage {
    width: 100%;
    max-width: 500px;
    height: 400px;
  }
  
  /* Stack them vertically on smaller screens */
  .code-card {
    position: relative;
    width: 80%;
    left: auto;
    top: auto;
    margin: 0 auto 20px;
  }
  
  .visual-card {
    position: relative;
    width: 90%;
    right: auto;
    bottom: auto;
    margin: 0 auto;
  }
  
  .lux-connector {
    display: none; /* Hide connector on mobile */
  }
  
  .sans-font {
    margin-left: 0;
  }
}

/* === THEME 2: MAINTENANCE (Technical / Bento Grid) === */
.layout-bento {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  grid-template-rows: 2fr 1fr;
  gap: 20px;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
}

.bento-box {
  background: #252a25;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.bento-box:hover {
  border-color: rgba(168, 85, 247, 0.3);
}

/* Header Box */
.bento-header {
  grid-column: 1;
  grid-row: 1 / span 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title-stack {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.sub-serif {
  display: block;
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  color: #94a3b8;
}

.service-desc-small {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 30px;
  max-width: 400px;
}

.terminal-description {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #888;
  margin-bottom: 30px;
  max-width: 550px;
}

html[data-theme="light"] .terminal-description {
  color: #888 !important;
}

.service-btn-tech {
  display: inline-block;
  width: fit-content;
  background: #2d332d;
  color: #c084fc;
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-left: 2px solid #c084fc;
  transition: background 0.3s ease;
}

.service-btn-tech:hover {
  background: #363d36;
}

/* Main Visual Box */
.bento-visual-main {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
}

.bento-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.tech-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: #c084fc;
  background: rgba(0,0,0,0.6);
  padding: 8px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Detail Boxes */
.bento-detail-1 {
  grid-column: 1;
  grid-row: 2;
  position: relative;
}

.bento-detail-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.bento-detail-1:hover img {
  filter: grayscale(0%);
}

.bento-caption {
  position: absolute;
  bottom: 10px;
  left: 15px;
  font-size: 10px;
  color: #fff;
  background: #000;
  padding: 2px 6px;
}

.bento-detail-2 {
  display: none; /* Optional extra box if needed later */
}

/* === THEME 4: WEB MAINTENANCE (Terminal/Console Interface) === */
.layout-terminal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent; /* Made transparent */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none; /* Removed shadow as requested */
  border: 1px solid #333;
  max-width: 1400px;
  margin: 0 auto;
  transform: scale(0.95);
  transform-origin: center;
}

.terminal-header {
  background: #1e1e1e; /* Keep solid header color */
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c084fc; /* Purple accent line */
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

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

.terminal-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #c084fc;
  font-weight: 600;
  text-transform: uppercase;
}

html[data-theme="light"] .terminal-status {
  color: #7c3aed;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.status-indicator.active {
  background: #c084fc;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.terminal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  flex: 1;
  min-height: 0; /* Crucial for preventing grid overflow */
  overflow: hidden; /* Ensure nothing leaks out */
}

.terminal-window {
  background: transparent; /* Made transparent */
  padding: 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #c084fc;
  overflow: hidden; /* No scrolling */
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0; /* Allow flex child to shrink */
}

.terminal-prompt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-symbol {
  color: #c084fc;
  font-weight: bold;
}

.prompt-text {
  color: #fff;
}

.cursor-blink {
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal-response {
  color: #888;
  line-height: 1.6;
  margin-left: 20px;
}

.text-success {
  color: #c084fc;
  font-weight: bold;
}

.maintenance-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.maintenance-icon {
  filter: drop-shadow(0 0 5px #c084fc);
}

.service-title-terminal {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
  display: block;
  margin-bottom: 0;
}

.service-subtitle-terminal {
  font-size: 14px;
  color: #c084fc;
  text-transform: uppercase;
}

.terminal-description {
  color: #aaa;
  line-height: 1.6;
  margin: 20px 0;
  font-size: 13px;
}

.terminal-stats {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
  color: #c084fc;
}

.terminal-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid #c084fc;
  color: #c084fc;
  padding: 16px 32px;
  font-family: 'Space Grotesk', monospace;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  margin-top: auto;
  width: fit-content;
  margin-bottom: 10px;
}

.terminal-button svg {
  transition: transform 0.3s ease;
}

.terminal-button:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.terminal-button:hover svg {
  transform: translateX(6px);
}

.btn-bracket {
  font-weight: bold;
}

.terminal-monitor {
  background: transparent; /* Made transparent */
  padding: 20px; /* Reduced padding slightly */
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%; /* Ensure full height */
  overflow: hidden;
}

.monitor-frame {
  background: transparent; /* Made transparent */
  padding: 10px; /* Reduced internal padding */
  border-radius: 8px;
  border: 2px solid #333;
  flex: 1; /* Takes 50% space */
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mini-monitors {
  display: flex;
  gap: 15px;
  flex: 1; /* Takes 50% space */
  min-height: 0;
}

.mini-monitor {
  background: transparent; /* Made transparent */
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
}

.mini-monitor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%) contrast(1.1);
}

.mini-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent; /* Made transparent */
  color: #c084fc;
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.monitor-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent; /* Made transparent */
  border-radius: 4px;
  overflow: hidden;
}

/* Base Image (Before) */
.monitor-img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly dim to contrast with scan line */
  filter: sepia(0.5) hue-rotate(-50deg) contrast(1.2); /* Give it an "old" look */
}

html[data-theme="light"] .monitor-img-before {
  opacity: 1 !important;
  filter: grayscale(80%) contrast(0.9);
}

/* Reveal Image (After) - Clipped */
.monitor-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: revealScan 3s ease-in-out infinite alternate;
}

.monitor-img-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(1.1);
}

html[data-theme="light"] .monitor-img-after {
  background: none !important;
}

html[data-theme="light"] .monitor-img-after img {
  filter: none !important;
  opacity: 1 !important;
  brightness: 1 !important;
}

/* Reveal Animation */
@keyframes revealScan {
  0% { clip-path: inset(0 0 100% 0); } /* Fully hidden (clipped from bottom) */
  100% { clip-path: inset(0 0 0% 0); } /* Fully visible */
}

.monitor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(204, 255, 0, 0.05) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden; /* Ensure scan line stays inside */
  pointer-events: none;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #c084fc;
  box-shadow: 0 0 15px #c084fc; /* Stronger glow */
  animation: scanLine 3s ease-in-out infinite alternate;
}

@keyframes scanLine {
  0% { top: 0%; opacity: 1; }
  100% { top: 100%; opacity: 0.5; }
}

.monitor-info {
  background: rgba(0,0,0,0.7); /* Restored background */
  padding: 10px;
  border-radius: 4px;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  margin-top: auto;
}

.info-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.info-label {
  color: #888;
}

.info-value {
  color: #fff;
}
/* Removed duplicate mini-monitors definitions that were here */

/* === THEME 3: SOCIAL MEDIA (Editorial / Dynamic) === */
.layout-editorial {
  display: grid;
  grid-template-columns: 40% 60%;
  width: 100%;
  height: 100%;
  padding: 0 5%;
}

.editorial-col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 40px;
  position: relative; /* Added for spotlight positioning */
  z-index: 1;
}

.title-spotlight {
  position: absolute;
  top: 15%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.9) 0%, rgba(168, 85, 247, 0.25) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  opacity: 1;
}

.editorial-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(50px, 6vw, 100px);
  line-height: 0.85;
  margin-bottom: 20px;
}

.editorial-outline {
  color: transparent;
  -webkit-text-stroke: 1px #e2e8f0;
}

html[data-theme="light"] .editorial-outline {
  -webkit-text-stroke: 2px #1a1a1a;
}

.editorial-filled {
  color: #e2e8f0;
}

html[data-theme="light"] .editorial-filled {
  color: #000000;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.editorial-separator {
  width: 60px;
  height: 2px;
  background: #c084fc;
  margin-bottom: 30px;
}

.editorial-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #94a3b8;
}

html[data-theme="light"] .editorial-desc {
  color: #888 !important;
  font-weight: 500 !important;
  text-shadow: none;
  margin-bottom: 40px;
  max-width: 400px;
}

.editorial-meta {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-head {
  font-size: 11px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 4px;
}

.meta-sub {
  font-family: 'Bodoni Moda', serif;
  font-size: 18px;
  color: #e2e8f0;
}

.service-btn-minimal {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: #c084fc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  margin-top: 0;
}

.service-btn-minimal svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: #c084fc;
}

.service-btn-minimal:hover {
  gap: 10px;
  color: #ffffff;
  text-shadow: none;
}

.service-btn-minimal:hover svg {
  transform: translateX(10px);
  stroke: #ffffff;
}

.service-btn-minimal.btn-arrow-left:hover svg {
  transform: translateX(-10px);
}

/* Collage Stack */
.editorial-col-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-stack {
  position: relative;
  width: 100%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collage-item {
  position: absolute;
  background: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 4px solid #fff;
  transition: transform 0.4s ease;
}

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

.collage-item.item-1 {
  width: 25vw;
  max-width: 350px;
  aspect-ratio: 3/4;
  transform: rotate(-5deg) translateX(-50px);
  z-index: 2;
}

.collage-item.item-2 {
  width: 28vw;
  max-width: 400px;
  aspect-ratio: 16/10;
  transform: rotate(5deg) translateX(50px);
  z-index: 3;
}

.collage-item.item-3 {
  width: 15vw;
  max-width: 200px;
  aspect-ratio: 1;
  transform: translate(0, 150px) rotate(-10deg);
  z-index: 4;
}

.collage-stack:hover .item-1 { transform: rotate(-8deg) translateX(-70px); }
.collage-stack:hover .item-2 { transform: rotate(8deg) translateX(70px); }
.collage-stack:hover .item-3 { transform: translate(0, 160px) rotate(-15deg); }


/* === THEME 5: MAINTENANCE GALLERY (Scattered Visual) === */
.layout-maintenance-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.shield-grid-bg {
  position: absolute;
  inset: -10%;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: 0;
  animation: gridPulseShield 10s ease-in-out infinite;
}

@keyframes gridPulseShield {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.maintenance-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.shield-visual-compact {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.shield-ring.ring-1 {
  width: 240px;
  height: 240px;
  border-width: 2px;
  border-color: rgba(168, 85, 247, 0.2);
  animation: rotateRing1 20s linear infinite;
}

.shield-ring.ring-2 {
  width: 180px;
  height: 180px;
  border-style: dashed;
  border-color: rgba(168, 85, 247, 0.4);
  animation: rotateRing2 15s linear infinite reverse;
}

.shield-ring.ring-3 {
  width: 130px;
  height: 130px;
  border-width: 2px;
  border-color: rgba(168, 85, 247, 0.6);
  animation: rotateRing3 10s linear infinite;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

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

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

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

.shield-core {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c084fc, #8b5cf6);
  box-shadow: 
    0 0 40px rgba(168, 85, 247, 0.5),
    0 0 80px rgba(168, 85, 247, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  z-index: 10;
  position: relative;
  animation: pulseCore 3s ease-in-out infinite;
}

.shield-core svg {
  width: 44px;
  height: 44px;
  stroke: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.shield-progress {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.progress-circle {
  animation: progressFill 3s ease-out forwards;
}

@keyframes progressFill {
  from { stroke-dashoffset: 565; }
  to { stroke-dashoffset: 56; }
}

.maintenance-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.maintenance-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(50px, 6vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 0.9;
  margin: 0;
}

.maintenance-subtitle {
  font-family: 'Bodoni Moda', serif;
  font-size: 20px;
  font-style: italic;
  color: #c084fc;
}

.maintenance-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 400px;
}

.maintenance-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #c084fc;
  color: #020617;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.maintenance-cta:hover {
  background: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.maintenance-cta svg {
  transition: transform 0.3s ease;
}
.maintenance-cta:hover svg {
  transform: translateX(5px);
}

.maint-element {
  position: absolute;
  z-index: 5;
}

/* Horizontal Pairs - Aligned */
/* Top Row */
.maint-el-1 { top: 15%; left: 15%; }
.maint-el-2 { top: 15%; right: 15%; }

/* Middle Row */
.maint-el-3 { top: 50%; left: 12%; transform: translateY(-50%); }
.maint-el-4 { top: 50%; right: 12%; transform: translateY(-50%); }

/* Bottom Row */
.maint-el-5 { bottom: 18%; left: 15%; }
.maint-el-6 { bottom: 18%; right: 15%; }

/* === Premium Panel System === */
.premium-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 1px;
  padding: 0;
  backdrop-filter: blur(24px);
  min-width: 180px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.premium-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.02), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.premium-panel:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-color: rgba(168, 85, 247, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.premium-panel:hover::before {
  opacity: 1;
}

/* Panel Header */
.panel-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.premium-panel:hover .panel-icon {
  color: #c084fc;
}

.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Panel Body */
.panel-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.05em;
}

.metric-value {
  font-family: 'Bodoni Moda', serif;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.status-active {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite;
}

/* Progress Bar */
.progress-bar-mini {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.6), #22c55e);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.progress-fill-perf {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.6), #c084fc);
}

/* Wide Panel Variant */
.premium-panel-wide {
  min-width: 200px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 1px;
  margin-bottom: 8px;
}

.cert-badge svg {
  width: 14px;
  height: 14px;
}

.cert-badge span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.1em;
}

.cert-expiry {
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.03em;
}

.perf-score {
  font-family: 'Bodoni Moda', serif;
  font-size: 32px;
  font-weight: 600;
  color: #a855f7;
  line-height: 1;
  margin-bottom: 8px;
}

.perf-label {
  font-family: 'Manrope', sans-serif;
  font-size: 8px;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* Terminal Panel Variant */
.premium-panel-terminal {
  min-width: 220px;
}

.terminal-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

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

.terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.2em;
}

.terminal-body {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.1);
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
}

.terminal-line:last-child {
  margin-bottom: 0;
}

.term-time {
  color: #a855f7;
  opacity: 0.7;
  min-width: 38px;
}

.term-msg {
  color: #cbd5e1;
  opacity: 0.9;
}

/* Stat Panel Variant */
.premium-panel-stat {
  min-width: 160px;
  text-align: center;
}

.stat-header {
  padding: 16px 20px 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-display {
  padding: 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-number {
  font-family: 'Bodoni Moda', serif;
  font-size: 44px;
  font-weight: 600;
  color: #a855f7;
  line-height: 1;
}

.stat-symbol {
  font-family: 'Bodoni Moda', serif;
  font-size: 24px;
  font-weight: 600;
  color: #a855f7;
  opacity: 0.7;
}

.stat-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.03em;
}

.detail-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

/* === Floating Particles === */
.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  pointer-events: none;
}

.particle-1 {
  top: 15%;
  left: 10%;
  animation: floatParticle 8s ease-in-out infinite;
}

.particle-2 {
  top: 70%;
  right: 15%;
  animation: floatParticle 10s ease-in-out infinite 2s;
}

.particle-3 {
  bottom: 20%;
  left: 20%;
  animation: floatParticle 12s ease-in-out infinite 4s;
}

@keyframes floatParticle {
  0%, 100% { 
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% { 
    transform: translate(30px, -30px);
    opacity: 0.8;
  }
  50% { 
    transform: translate(-20px, -60px);
    opacity: 0.4;
  }
  75% { 
    transform: translate(40px, -30px);
    opacity: 0.6;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  /* Immersive Theme */
  .layout-immersive { flex-direction: column; justify-content: flex-end; }
  .immersive-bg { width: 100%; height: 60%; top: 0; }
  .immersive-card { width: 90%; margin: 0 auto 40px; background: rgba(29,33,29,0.9); }
  
  /* Bento Theme */
  .layout-bento { grid-template-columns: 1fr; grid-template-rows: auto 40vh auto; padding: 20px; }
  .bento-header { grid-column: 1; grid-row: 1; }
  .bento-visual-main { grid-column: 1; grid-row: 2; }
  .bento-detail-1 { grid-column: 1; grid-row: 3; height: 150px; }
  
  /* Editorial Theme */
  .layout-editorial { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 40px 20px; gap: 40px; }
  .editorial-col-text { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; padding-right: 0; text-align: center; align-items: center; }
  .editorial-meta { justify-content: center; }
  
  /* Terminal Theme */
  .layout-terminal { margin: 20px; }
  .terminal-content { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .terminal-window { padding: 20px; }
  .terminal-monitor { padding: 20px; }
  .monitor-frame { min-height: 200px; }
  .mini-monitors { flex-direction: column; gap: 10px; }
  
  /* Shield Command Center Theme */
  .shield-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 40px;
    padding: 40px 20px;
  }
  
  .shield-left {
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
  }
  
  .status-card {
    min-width: 200px;
  }
  
  .shield-center {
    order: 3;
  }
  
  .shield-visual {
    width: 280px;
    height: 280px;
  }
  
  .shield-ring.ring-1 { width: 240px; height: 240px; }
  .shield-ring.ring-2 { width: 180px; height: 180px; }
  .shield-ring.ring-3 { width: 130px; height: 130px; }
  
  .shield-core {
    width: 80px;
    height: 80px;
  }
  
  .shield-right {
    order: 2;
  }
  
  .shield-content {
    text-align: center;
    align-items: center;
  }
  
  .collage-item.item-1 { width: 40vw; transform: rotate(-5deg); }
  .collage-item.item-2 { width: 50vw; transform: rotate(5deg); }
  .collage-item.item-3 { width: 25vw; transform: translate(0, 80px); }
}

@media (max-width: 768px) {
  .proba-slide { padding: 20px; }
  
  /* Fonts */
  .serif-line, .sans-line { font-size: 42px; }
  .immersive-card { padding: 30px; }
  
  .service-title-stack { font-size: 36px; }
  
  .editorial-title { font-size: 48px; }
  
  /* Terminal Mobile */
  .layout-terminal { margin: 10px; border-radius: 8px; }
  .terminal-header { padding: 8px 15px; }
  .terminal-title { font-size: 10px; }
  .terminal-status { font-size: 8px; }
  .terminal-window { padding: 15px; font-size: 12px; }
  .terminal-stats { flex-direction: column; gap: 10px; }
  .terminal-button { padding: 10px 16px; font-size: 11px; }
  .service-title-terminal { font-size: 16px; }
  .service-subtitle-terminal { font-size: 12px; }
  
  .collage-item { border-width: 2px; }
}

/* SHARED TYPOGRAPHY FOR ALL LAYOUTS */
.scatter-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-top: 6px;
}

.scatter-quote-text {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.scatter-quote-sig {
  display: inline-block;
  font-family: 'Cinzel Decorative', cursive;
  color: #a855f7;
  font-size: 18px;
}

/* RESPONSIVE ADJUSTMENTS FOR NEW LAYOUTS */
@media (max-width: 1024px) {
  /* Web Development Layout */
  .layout-web .web-main { width: 40vw; }
  .layout-web .web-tl { width: 25vw; top: 12%; left: 5%; }
  .layout-web .web-tr { width: 20vw; top: 10%; right: 5%; }
  .layout-web .web-bl { width: 20vw; bottom: 10%; left: 5%; }
  .layout-web .web-br { width: 25vw; bottom: 15%; right: 5%; }
  
  /* Maintenance Layout */
  .layout-maintenance .maint-main { width: 60vh; max-width: 500px; }
  .layout-maintenance .maint-tl, 
  .layout-maintenance .maint-tr { width: 12vh; max-width: 160px; }
  .layout-maintenance .maint-bl, 
  .layout-maintenance .maint-br { width: 15vh; max-width: 180px; }
  
  /* Social Layout */
  .layout-social .social-main { width: 30vh; max-width: 260px; }
  .layout-social .social-left-1 { width: 25vw; max-width: 200px; }
  .layout-social .social-left-2 { width: 20vw; max-width: 160px; }
  .layout-social .social-center { width: 28vh; max-width: 240px; }
  .layout-social .social-right { width: 18vh; max-width: 160px; }
}

@media (max-width: 768px) {
  /* Stack layout for mobile because scattered layouts don't fit */
  .proba-slide {
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
  
  .layout-web, .layout-maintenance, .layout-social {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  
  /* Reset positioning for mobile */
  .web-item, .maint-item, .social-item {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 300px !important;
    text-align: center;
  }
  
  /* Quote ordering */
  .web-quote, .maint-quote, .social-quote { 
    order: 1; 
    margin-bottom: 20px;
    max-width: 100% !important;
  }
  
  .web-main, .maint-main, .social-main { 
    order: 2; 
    max-width: 280px !important;
  }
  
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pos-center-main { width: 40vw; }
  .pos-tl { width: 25vw; top: 12%; left: 5%; }
  .pos-bl { width: 20vw; bottom: 10%; left: 5%; }
  .pos-tr { width: 20vw; top: 10%; right: 5%; }
  .pos-br { width: 25vw; bottom: 15%; right: 5%; }
}

@media (max-width: 768px) {
  /* Stack layout for mobile because scattered doesn't fit */
  .proba-slide {
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
  
  .scatter-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  
  .scatter-item, .pos-quote {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
  }
  
  .pos-center-main { order: 2; }
  .pos-quote { order: 1; margin-bottom: 20px; }
}

/* TYPOGRAPHY & ELEMENTS */
.proba-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a855f7; /* Neon yellow/green accent */
  margin-bottom: 24px;
  display: block;
}

.proba-heading {
  font-family: 'Bodoni Moda', 'Playfair Display', serif;
  font-size: clamp(60px, 5vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  color: #e2e8f0;
  margin: 0;
}

.proba-heading.small {
  font-size: clamp(40px, 4vw, 80px);
}

.proba-heading.big {
  font-size: clamp(80px, 8vw, 160px);
}

.proba-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #94a3b8; /* Slightly darker grey for text */
  max-width: 380px;
  margin-top: 24px;
}

.proba-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 28px;
  background: #a855f7;
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.proba-btn:hover {
  background: #8b5cf6;
  transform: translateY(-2px);
}

.proba-quote {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 28px;
  color: #e2e8f0;
  max-width: 340px;
  line-height: 1.2;
}

.proba-signature {
  display: block;
  margin-top: 20px;
  width: 120px;
  height: auto;
  opacity: 0.8;
}

/* IMAGES & CARDS */
.proba-image-card {
  position: absolute;
  display: block;
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proba-image-card:hover {
  transform: scale(1.02);
  z-index: 10;
}

.proba-image-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.3) contrast(1.1);
  transition: filter 0.6s ease;
}

.proba-image-card:hover img {
  filter: grayscale(0) contrast(1);
}

.proba-card-caption {
  position: absolute;
  top: -24px;
  left: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  font-family: 'Space Grotesk', sans-serif;
}

/* === LAYOUT POSITIONS (SCATTERED) === */

/* Slide 1 - Izrada Web */
.slide-1 .main-title {
  position: absolute;
  top: 15%;
  left: 10%;
}

.slide-1 .card-1 {
  top: 25%;
  left: 40%;
  width: 380px;
  z-index: 2;
}

.slide-1 .proba-quote {
  position: absolute;
  bottom: 25%;
  right: 12%;
  text-align: right;
}

/* Slide 2 - Odrzavanje */
.slide-2 .card-2 {
  top: 15%;
  left: 10%;
  width: 280px;
}

.slide-2 .center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.slide-2 .card-3 {
  bottom: 15%;
  right: 12%;
  width: 320px;
}

/* Slide 3 - Social */
.slide-3 .big-end {
  position: absolute;
  top: 15%;
  right: 10%;
  text-align: right;
}

.slide-3 .card-4 {
  top: 35%;
  left: 15%;
  width: 450px; 
}

.slide-3 .bottom-right {
  position: absolute;
  bottom: 20%;
  right: 15%;
  max-width: 300px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  /* Intro slide removed */
}

@media (max-width: 1024px) {
  .proba-heading { font-size: 48px; }
  .proba-heading.big { font-size: 64px; }
  
  .slide-1 .card-1 { width: 300px; left: 35%; }
  .slide-3 .card-4 { width: 350px; }
}

@media (max-width: 768px) {
  .services-proba { height: auto; }
  .services-proba__sticky { position: relative; height: auto; flex-direction: column; }
  .services-proba__track { width: 100%; flex-direction: column; height: auto; }
  
  .proba-slide { 
    width: 100%; 
    height: auto; 
    min-height: 90vh; 
    padding: 60px 24px; 
    display: block; 
  }
  
  /* Reset absolute positioning for mobile - convert to flex/grid stack */
  .proba-content { display: flex; flex-direction: column; gap: 40px; }
  
  .slide-1 .main-title,
  .slide-1 .card-1,
  .slide-1 .proba-quote,
  .slide-2 .card-2,
  .slide-2 .center-text,
  .slide-2 .card-3,
  .slide-3 .big-end,
  .slide-3 .card-4,
  .slide-3 .bottom-right {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    transform: none;
    width: 100%;
    text-align: left;
  }
  
  .proba-image-card { width: 100%; margin: 20px 0; }
  .proba-image-card img { width: 100%; }
  .slide-2 .layout-terminal {
    max-width: 100%;
    transform: none;
  }
}

/* --- SOCIAL MEDIA: 5-CARD PHOTO STACK --- */
.photo-stack-5 {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  width: 280px; /* Fixed width for consistency */
  aspect-ratio: 4/5; /* Portrait/Polaroid ratio */
  background: #fff;
  padding: 6px; /* White border effect */
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center center;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.1); /* Punchy look */
  display: block;
}

/* Individual Card Positioning (Chaotic Pile) */


/* === SOCIAL INTERFACE VISUAL (NEW DESIGN) === */
.social-interface-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  animation: group-float 6s ease-in-out infinite; /* Move everything together */
}

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

.social-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* Phone Mockup - iPhone 17 Pro Style (Black Titanium) */
.social-phone-mockup.iphone-17 {
  position: relative;
  width: 280px;
  height: 570px;
  background: #000;
  border-radius: 54px;
  border: none;
  box-shadow: none; /* Removed outer glow */
  overflow: hidden;
  z-index: 2;
  transform: rotate(-5deg); /* Fixed rotation */
  /* No transition needed if no hover effect */
}

/* Removed hover effect to keep it static */


/* Floating Premium Icons (Instagram 3D Style) */
.floating-icon {
  position: absolute;
  width: 36px; /* Smaller size */
  height: 36px;
  z-index: 4;
  pointer-events: none;
  /* Removed individual animation so they sync perfectly with phone */
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.floating-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Positioning - Closer to Phone but with breathing room */
/* Phone width ~280px. Previous offsets were too tight (~170px). Increasing to ~220px */

.float-heart {
  top: 15%;
  left: calc(50% - 260px);
  transform: rotate(-15deg);
}

.float-comment {
  bottom: 18%;
  left: calc(50% - 210px);
  transform: rotate(10deg);
}

.float-share {
  top: 10%;
  right: calc(50% - 220px);
  transform: rotate(20deg);
}

.float-repost {
  bottom: 45%;
  right: calc(50% - 280px);
  width: 32px;
  height: 32px;
  transform: rotate(-10deg);
}

.float-growth {
  bottom: 12%;
  right: calc(50% - 210px);
  width: 32px;
  height: 32px;
  transform: rotate(5deg);
}

/* Remove unused keyframes if desired, but keeping them doesn't hurt. */
@keyframes icon-float {
  0%, 100% { transform: translateY(0) scale(1) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-15px) scale(1.05) rotate(var(--r, 5deg)); }
}

/* Phone Bezel (The Actual Black Border) */
.phone-bezel {
  position: absolute;
  inset: 0;
  border: 12px solid #000; /* Thick black bezel */
  border-radius: 50px;
  pointer-events: none;
  z-index: 30;
}

/* Dynamic Island (Integrated into Bezel) */
.dynamic-island {
  position: absolute;
  top: 12px; /* Inside the top bezel area */
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 35;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000; /* Pure black OLED */
  display: flex;
  flex-direction: column;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  padding-top: 40px; /* Push content below dynamic island */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* App UI Updates - 1:1 Instagram Replica */
.app-header {
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.app-user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-username {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.app-location {
  font-size: 10px;
  color: #fff;
  opacity: 0.8;
}

.app-more svg {
  width: 20px;
  height: 20px;
  opacity: 1;
}

.app-post-container {
  width: 100%;
  flex: 1; /* Take available space */
  background: #121212;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.app-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-actions {
  padding: 10px 12px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.action-left {
  display: flex;
  gap: 14px;
}

.app-icon {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 1.8;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-icon:hover { transform: scale(1.1); }

.heart-icon {
  cursor: pointer;
}

/* Like Heart Popup Animation */
.like-heart-popup {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100px;
  height: 100px;
  object-fit: contain;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.like-heart-popup.active {
  animation: likeHeartAnimation 1s ease-out forwards;
}

@keyframes likeHeartAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  30% {
    transform: translate(-50%, -50%) scale(0.95);
  }
  45% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  85% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Save Icon Fill Animation */
.save-icon.saved #savePath {
  fill: white;
  transition: fill 0.3s ease;
}

.comment-icon, .share-icon {
  cursor: pointer;
}

#headerAvatar,
#headerUsername,
.profile-link-avatar,
#navAvatar {
  cursor: pointer;
}

#headerUsername:hover {
  text-decoration: underline;
}

/* Comment Section */
.comment-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 50;
}

.comment-section.active {
  height: 65%;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.comment-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-username {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.comment-text {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.comment-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
}

.comment-input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  outline: none;
}

.comment-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.comment-post-btn {
  background: none;
  border: none;
  color: #0095f6;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.comment-post-btn.active {
  opacity: 1;
}

/* Post Details */
.app-details {
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.app-likes {
  margin-bottom: 4px;
  font-weight: 400;
}

.app-likes b { font-weight: 600; }

.app-caption {
  line-height: 1.3;
  font-size: 12px;
}

.app-caption b { font-weight: 600; margin-right: 4px; }

.hashtags { color: #e0f2fe; opacity: 0.8; }

/* Bottom Navigation - Authentic iOS Dock */
.app-bottom-nav {
  padding: 10px 24px 28px; /* Bottom padding for home indicator */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  border-top: 0.5px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  position: relative;
}

/* Home Indicator Line */
.app-bottom-nav::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.9;
}

.nav-icon {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 1.8;
  opacity: 0.9; /* Higher visibility */
}

.nav-icon.active { opacity: 1; stroke-width: 2.2; }

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #fff;
}

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


/* Floating Cards */
.social-float-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.analytics-card {
  top: 15%;
  right: 10%;
  width: 140px;
  transform: rotate(5deg);
  animation: float-slow 6s ease-in-out infinite;
}

.float-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.float-icon {
  font-size: 10px;
  color: #38bdf8;
}

.float-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
}

.float-number {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.float-graph {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 30px;
}

.graph-bar {
  width: 6px;
  background: #38bdf8;
  border-radius: 3px;
  opacity: 0.5;
}

.graph-bar:last-child { opacity: 1; }

.h-30 { height: 30%; }
.h-50 { height: 50%; }
.h-80 { height: 80%; }
.h-40 { height: 40%; }
.h-90 { height: 90%; }
.h-60 { height: 60%; }

.comment-card {
  bottom: 20%;
  left: 5%;
  width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(-3deg);
  animation: float-reverse 7s ease-in-out infinite;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cbd5e1;
}

.comment-content {
  flex: 1;
}

.comment-line {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-bottom: 6px;
}

.comment-heart {
  color: #ef4444;
  font-size: 16px;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

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

.stack-card.s1 {
  z-index: 1;
  transform: translate(-40px, 30px) rotate(-15deg) scale(0.9);
}

/* Card 2 */
.stack-card.s2 {
  z-index: 2;
  transform: translate(50px, -40px) rotate(10deg) scale(0.95);
}

/* Card 3: Middle */
.stack-card.s3 {
  z-index: 3;
  transform: translate(-20px, -10px) rotate(-5deg);
}

/* Card 4 */
.stack-card.s4 {
  z-index: 4;
  transform: translate(30px, 40px) rotate(8deg) scale(1.02);
}

/* Card 5: Top Front */
.stack-card.s5 {
  z-index: 5;
  transform: translate(0, 0) rotate(-2deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5); /* Deeper shadow for top card */
}

/* Interactive Hover Effect: Explode/Spread */
.photo-stack-5:hover .stack-card.s1 { transform: translate(-140px, 60px) rotate(-20deg) scale(0.9); }
.photo-stack-5:hover .stack-card.s2 { transform: translate(150px, -80px) rotate(15deg) scale(0.95); }
.photo-stack-5:hover .stack-card.s3 { transform: translate(-60px, -30px) rotate(-10deg); }
.photo-stack-5:hover .stack-card.s4 { transform: translate(80px, 90px) rotate(12deg) scale(1.02); }
.photo-stack-5:hover .stack-card.s5 { transform: translate(0, 0) rotate(0deg) scale(1.1); }

/* ========================================
   LIGHT MODE - SERVICES PROBA
   ======================================== */

html[data-theme="light"] .proba-slide {
  color: #000000;
  font-weight: 700;
}

html[data-theme="light"] .intro-eyebrow {
  color: #4c1d95;
  font-weight: 900;
  -webkit-text-stroke: 1px #3b0764;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .intro-title {
  color: #000000;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 0.3px #000000;
}

html[data-theme="light"] .intro-desc {
  color: #000000;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .serif-line,
html[data-theme="light"] .sans-line {
  color: #000000;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-text-stroke: 0.3px #000000;
}

html[data-theme="light"] .lux-eyebrow,
html[data-theme="light"] .eyebrow-txt {
  color: #4c1d95;
  font-weight: 900;
  -webkit-text-stroke: 1px #3b0764;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .lux-desc,
html[data-theme="light"] .lux-text,
html[data-theme="light"] .lux-caption {
  color: #000000;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .tag-item {
  background: rgba(91, 33, 182, 0.12);
  color: #4c1d95;
  font-weight: 800;
  border: 3px solid #5b21b6;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .grid-number {
  color: #5b21b6;
  font-weight: 900;
  -webkit-text-stroke: 0.8px #4c1d95;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .grid-title {
  color: #000000;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .grid-desc {
  color: #000000;
  font-weight: 800;
}

html[data-theme="light"] .scatter-title {
  color: #000000;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .scatter-desc {
  color: #000000;
  font-weight: 700;
}

html[data-theme="light"] .services-proba__bg-lines {
  opacity: 0.05;
}

/* Sharpen visual elements in light mode */
html[data-theme="light"] .stack-card {
  border: 3px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  filter: contrast(1.1) brightness(0.95);
}

html[data-theme="light"] .stack-card img {
  filter: contrast(1.15) saturate(1.1);
}

html[data-theme="light"] .code-card {
  border: 3px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  filter: contrast(1.05);
}

html[data-theme="light"] .visual-card {
  border: 3px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  filter: contrast(1.05);
}

html[data-theme="light"] .terminal-card {
  border: 3px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .photo-stack-5 {
  filter: contrast(1.08);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .stack-card { width: 220px; }
}

@media (max-width: 768px) {
  .photo-stack-5 { height: 400px; margin-top: 40px; }
  .stack-card { width: 180px; }
  /* Reduce spread on mobile to fit screen */
  .photo-stack-5:hover .stack-card.s1 { transform: translate(-80px, 40px) rotate(-20deg); }
  .photo-stack-5:hover .stack-card.s2 { transform: translate(90px, -50px) rotate(15deg); }
}