/* Base Styles */
body {
  font-family: "Playfair Display", serif;
}

.gradient-overlay {
  position: relative; /* anchor for absolute positioning */
}

.gradient-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;   /* adjust size */
  height: 1400px; /* adjust size */
  background: linear-gradient(
    74deg,
    rgba(214, 255, 253, 1),
    rgba(97, 0, 216, 0.1)
  );
  opacity: 0.66;
  filter: blur(310px); /* layer blur */
  transform: rotate(-74.62deg);
  pointer-events: none; /* makes it non-interactive */
  z-index: 1; /* sits above content */
}



/* Scroll-based backdrop blur */
.header-blur {
  backdrop-filter: blur(122px);
  transition: backdrop-filter 0.6s ease;
}

/* Header with transparent background initially */
.header-transparent {
  background: transparent !important;
}

:root {
  --transition-curve: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-medium: 0.45s;
  --transition-fast: 0.25s;
}

/* AI Gradient Text Utility */
.ai-gradient-text {
  background: linear-gradient(90deg, #907E9D 0%, #6145FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bogart-family {
  font-family: "bogart", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.hero-300 {
  font-family: "new-hero", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.hero-400 {
  font-family: "new-hero", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.hero-600 {
  font-family: "new-hero", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.dark_card {
  background:
    linear-gradient(90deg, #393939, #4c4c4c),
    conic-gradient(
      from -90deg at 100.06% 100%,
      #393939 0deg,
      #4c4c4c 90.33deg,
      #393939 360deg
    );
}

.dark_card h3 {
  background: linear-gradient(90.25deg, #f8f1ff 16.16%, #eee9ff 71.67%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card-shadow {
  box-shadow: 0px 4px 31.8px var(--feature-shadow-color, rgba(15, 23, 42, 0.12));
}

.feature-card-shadow.card-border::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* Video Container */
.video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.shadow-inner-lg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset -20px -7px 39px rgba(180, 160, 255, 0.08),
    inset 17px 27px 50px rgba(116, 22, 223, 0.03),
    inset 0 86px 129px rgba(0, 0, 0, 0.12);
}

/* Play Button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Navigation Link */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6100d8;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

.interactive-card {
  transition:
    transform var(--transition-medium) var(--transition-curve),
    box-shadow var(--transition-medium) ease,
    background-color var(--transition-medium) ease;
}

.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px -20px rgba(20, 9, 46, 0.35);
}

.image-tilt {
  transition:
    transform 0.6s var(--transition-curve),
    box-shadow var(--transition-medium) ease;
}

.image-tilt:hover {
  transform: translateY(-6px) rotateX(1deg) rotateY(-2deg);
  box-shadow: 0 25px 60px -20px rgba(15, 27, 69, 0.35);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s var(--transition-curve),
    transform 0.8s var(--transition-curve);
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate[data-delay="200"] {
  transition-delay: 0.2s;
}

.scroll-animate[data-delay="400"] {
  transition-delay: 0.4s;
}

/* Scroll cascade: driven by scroll position (no transition, reverses on scroll up) */
.scroll-cascade-item {
  opacity: 0;
  transform: translateY(36px);
}

.link-soft {
  position: relative;
  transition: color var(--transition-fast) ease;
}

.link-soft::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 2px;
  background: currentColor;
  opacity: 0.15;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast) var(--transition-curve);
}

.link-soft:hover {
  color: #241635;
}

.link-soft:hover::after {
  transform: scaleX(1);
  opacity: 0.35;
}

/* Smooth scroll - Lenis provides friction scroll when loaded; fallback for no-JS */
html:not(.lenis) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-cascade-item,
  .interactive-card,
  .image-tilt {
    transition: none !important;
    transform: none !important;
  }

  .scroll-cascade-item {
    opacity: 1 !important;
  }
}
