/* 
   Polygon Branding - Home Styles
   Refactored from index.html
*/

html {
  scroll-behavior: smooth;
}

.glass-header {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Shining CTA button */
.btn-shine {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(131, 60, 246, 0.45);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-shine:hover {
  box-shadow: 0 0 28px rgba(131, 60, 246, 0.7);
  transform: scale(1.04);
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine-sweep 6s infinite;
}

@keyframes btn-shine-sweep {
  0% { left: -75%; }
  60% { left: 130%; }
  100% { left: 130%; }
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

input, textarea, select { 
  background: rgba(255,255,255,0.03) !important; 
  border: 1px solid rgba(255,255,255,0.1) !important; 
  color: white !important; 
  transition: all 0.3s ease; 
}

input:focus, textarea:focus, select:focus { 
  background: rgba(255,255,255,0.08) !important; 
  border-color: #3b82f6 !important; 
  box-shadow: 0 0 0 1px rgba(59,130,246,0.5) !important; 
  outline: none; 
  color: white !important; 
}

/* Fix for browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  -webkit-text-fill-color: white !important;
  -webkit-box-shadow: 0 0 0px 1000px #121212 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Hero gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(30px, -20px); }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #833cf6 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Counter number animation */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* Smooth image reveal */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

/* Sticky process section */
.process-step {
  opacity: 0;
  transform: translateY(60px);
}

/* Line draw animation */
.line-draw {
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-draw.active {
  width: 100%;
}

/* Card hover lift */
.card-lift {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

/* Parallax depth layers — will-change set dynamically by JS only during scroll */
.parallax-slow {
}

.parallax-fast {
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--marquee-fade, #0A0A0A) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--marquee-fade, #0A0A0A) 0%, transparent 100%);
}

html.dark { --marquee-fade: #0A0A0A; }
html:not(.dark) { --marquee-fade: #ffffff; }

.marquee-track {
  display: inline-flex;
  animation: marquee 15s linear infinite;
}

@media (min-width: 768px) {
  .marquee-track {
    animation-duration: 35s;
  }
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body {
  min-height: max(884px, 100dvh);
}
