/* Polycool - Custom Styles */

/* CSS Variables */
:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 0%;
  --border: 0 0% 20%;
  --muted-foreground: 0 0% 70%;
}

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

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

/* Glow Effects */
.glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.glow-top {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
  height: 60%;
  background: radial-gradient(ellipse at top center, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

.glow-bottom-right {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at bottom right, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid Patterns */
.grid-pattern {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.grid-pattern-fine {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.grid-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Hero Fade */
.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, hsl(var(--background)) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

/* Bento Cards */
.bento-card {
  background: #ffffff05;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1.5rem;
  transition: all .4s ease;
}

.bento-card:hover {
  background: #ffffff0a;
  border-color: #ffffff1a;
  transform: translateY(-4px);
}

.bento-card-large {
  background: linear-gradient(135deg, #ffffff08, #ffffff03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.5rem;
  transition: all .4s ease;
}

.bento-card-large:hover {
  border-color: #ffffff26;
  transform: translateY(-4px);
}

/* Icon Minimal */
.icon-minimal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.icon-minimal:hover {
  border-color: #ffffff4d;
  background: #ffffff0d;
}

/* Slider / Carousel */
.slider-container {
  position: relative;
}

.slider-container::before,
.slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 10;
  pointer-events: none;
}

.slider-container::before {
  left: 0;
  background: linear-gradient(to right, hsl(var(--background)), transparent);
}

.slider-container::after {
  right: 0;
  background: linear-gradient(to left, hsl(var(--background)), transparent);
}

/* Scroll Animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: scroll 25s linear infinite;
}

/* Stagger Children Animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  color: black;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  transform: scale(1.05);
}

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

.cta-button:hover svg {
  transform: translateX(4px);
}

/* Animate on scroll */
[data-animate] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Bounce animation for chevron */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}
