/* Syntrix Growth — custom layer on top of Tailwind CDN */

html {
  background: #050507;
}

body {
  overflow-x: hidden;
}

/* film-grain overlay for depth (very subtle) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* headline gradient — monochrome, Apple-like */
.text-gradient {
  background: linear-gradient(180deg, #ffffff 30%, #8a8a93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav state once scrolled */
#nav.scrolled {
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 3D perspective for the stacking cards */
.service-panel {
  perspective: 1400px;
}
.panel-inner {
  transform-style: preserve-3d;
}

/* scroll cue animation */
.cue-dot {
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

/* infinite channel marquee */
.marquee-track {
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* images render above their gradient fallback once loaded */
.parallax-img {
  will-change: transform;
}

/* nicer scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050507; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid #050507;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .cue-dot { animation: none; }
  #scroll-cue { display: none; }
}

.image-container {
  display: inline-block;
  position: relative;
  /* White background with 70% transparency (0.3 alpha = 70% transparent / 30% opaque, or use 0.7 for 70% white opacity) */
  background-color: rgba(255, 255, 255, 0.6);
  
  /* Round top-left and bottom-right corners (top-left, top-right, bottom-right, bottom-left) */
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  
  /* Optional padding so the white background shows as a frame around the image */
  padding: 10px;
  overflow: hidden;
}

.image-container img {
  display: block;
  /* Match or adjust corner rounding on the image itself if needed */
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
