/* Ralph Invesco Custom Styles */
:root {
  --radius: 0.25rem;

  /* Ralph Invesco palette */
  --background: oklch(0.13 0.005 240);
  /* #050505-ish */
  --foreground: oklch(1 0 0);
  --card: oklch(0.18 0.01 230);
  --card-foreground: oklch(1 0 0);
  --popover: oklch(0.18 0.01 230);
  --popover-foreground: oklch(1 0 0);
  --primary: oklch(0.5 0.09 200);
  /* #075C66 dark teal */
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.55 0.09 200);
  /* #0B6E79 */
  --secondary-foreground: oklch(1 0 0);
  --muted: oklch(0.22 0.01 230);
  --muted-foreground: oklch(0.75 0.01 230);
  --accent: oklch(0.72 0.2 45);
  /* #FF6A21 orange */
  --accent-foreground: oklch(0.13 0 0);
  --destructive: oklch(0.6 0.22 25);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(1 0 0 / 8%);
  --input: oklch(1 0 0 / 12%);
  --ring: oklch(0.72 0.2 45 / 60%);

  --teal: #075C66;
  --teal-soft: #0B6E79;
  --orange: #FF6A21;
  --orange-soft: #FF8A4D;

  /* Curated gradients & shadows */
  --gradient-glow: radial-gradient(60% 60% at 50% 50%, rgba(255, 106, 33, 0.18), transparent 70%);
  --gradient-teal: radial-gradient(60% 60% at 50% 50%, rgba(11, 110, 121, 0.22), transparent 70%);
  --shadow-glow-orange: 0 0 60px -10px rgba(255, 106, 33, 0.55);
  --shadow-glow-teal: 0 0 60px -10px rgba(11, 110, 121, 0.55);

  /* Fonts */
  --font-display: "Inter", ui-sans-serif, system-ui;
  --font-sans: "Inter", ui-sans-serif, system-ui;
}

* {
  border-color: var(--border);
}

html,
body {
  background-color: #050505;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-sans);
  overflow-x: clip;
}

::selection {
  background: var(--orange);
  color: #050505;
}

/* Noise overlay */
.noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* Custom utility for thin display headlines */
.text-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.text-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--orange);
}


/* Animations */
@keyframes slow-fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes slow-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes drift {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -20px, 0);
  }
}

@keyframes orbital {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-slow-fade-up {
  animation: slow-fade-up 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

.animate-slow-fade {
  animation: slow-fade 2s ease-out both;
}

.animate-drift {
  animation: drift 14s ease-in-out infinite;
}

.glow-orange {
  box-shadow: var(--shadow-glow-orange);
}

.glow-teal {
  box-shadow: var(--shadow-glow-teal);
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 106, 33, 0.4);
}

/* Futuristic Neon Pulsating Hover & Glow highlights */
@keyframes pulse-neon {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 106, 33, 0.25), inset 0 0 4px rgba(255, 106, 33, 0.1);
    border-color: rgba(255, 106, 33, 0.35);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 106, 33, 0.75), inset 0 0 10px rgba(255, 106, 33, 0.3);
    border-color: rgba(255, 106, 33, 0.9);
  }
}

.animate-pulse-neon {
  animation: pulse-neon 2.5s infinite ease-in-out;
}

.hover-pulse-neon:hover {
  animation: pulse-neon 2.5s infinite ease-in-out;
}

@media (min-width: 1024px) {
  #process {
    height: 280vh;
  }
}



.bg-cyber {
  background-color: #04151a !important;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(11, 110, 121, 0.32) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(7, 34, 41, 0.95) 0%, #041318 100%) !important;
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100% !important;
}

.bg-cyber-fixed {
  background-color: #04151a !important;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(11, 110, 121, 0.32) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(7, 34, 41, 0.75) 0%, #041318 100%) !important;
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100% !important;
  background-attachment: fixed !important;
}

/* Smooth Fade Overlays for Cyber Background transitions */
.cyber-fade-top {
  position: relative;
}

.cyber-fade-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, #050505 0%, rgba(5, 5, 5, 0.8) 30%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.cyber-fade-bottom {
  position: relative;
}

.cyber-fade-bottom::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, #050505 0%, rgba(5, 5, 5, 0.8) 30%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

/* Premium Products Showcase & Dropdown Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Product Specific Glows */
.glow-product-ci {
  box-shadow: 0 0 50px -10px rgba(255, 106, 33, 0.2), inset 0 0 20px rgba(255, 106, 33, 0.08);
}

.glow-product-ms {
  box-shadow: 0 0 50px -10px rgba(11, 110, 121, 0.3), inset 0 0 20px rgba(11, 110, 121, 0.08);
}

.glow-product-ss {
  box-shadow: 0 0 50px -10px rgba(16, 185, 129, 0.25), inset 0 0 20px rgba(16, 185, 129, 0.08);
}

.glow-product-flagship {
  box-shadow: 0 0 50px -10px rgba(255, 138, 77, 0.2), inset 0 0 20px rgba(11, 110, 121, 0.1);
}

/* Mega dropdown active class indicator */
.active-product-item {
  border-color: rgba(255, 106, 33, 0.3) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.active-product-item h4 {
  color: var(--orange) !important;
}

.active-product-item span {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Smooth reveal blur effect for overview section texts */
.blur-reveal {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-reveal.active {
  filter: blur(0px);
  opacity: 1;
  transform: translateY(0);
}

/* Premium Industrial Accordion Component */
.premium-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-accordion-item {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0.5rem;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

/* Hover styles for non-active items */
.premium-accordion-item:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.015);
  border-bottom-color: rgba(255, 102, 0, 0.2);
  padding-left: 1rem;
}

/* Active styles */
.premium-accordion-item.active {
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.03) 0%, transparent 100%);
  border-bottom-color: rgba(255, 102, 0, 0.4) !important;
  padding-left: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(255, 102, 0, 0.15);
}

/* Accent border indicator on the left for active accordion item */
.premium-accordion-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #FF6600;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Accordion headers */
.premium-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.premium-accordion-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-accordion-item.active .premium-accordion-title {
  color: #ffffff;
  font-weight: 400;
}

.premium-accordion-number {
  font-family: monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-accordion-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-accordion-item.active .premium-accordion-arrow {
  color: #FF6600;
  transform: translateX(4px);
}

.premium-accordion-item.active .premium-accordion-number {
  color: #FF6600;
}

/* Accordion content area */
.premium-accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-accordion-item.active .premium-accordion-content {
  max-height: 150px;
  opacity: 1;
}

.premium-accordion-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  padding-top: 1rem;
  transform: translateY(15px);
  filter: blur(4px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-accordion-item.active .premium-accordion-desc {
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   Three-Stage Molten Metal Scroll Experience (Full-Screen Background Video)
   ========================================================================== */
.molten-scroll-experience {
  background-color: #000000 !important;
  position: relative;
  width: 100%;
  z-index: 10;
}

.molten-scroll-experience #molten-pinned-viewport {
  background-color: #000000 !important;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .molten-scroll-experience {
    height: 600vh;
  }

  #products {
    margin-top: -100vh;
    position: relative;
    z-index: 30;
  }
}

#molten-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
}

#molten-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-panel {
  will-change: transform, opacity, filter;
  transition: filter 0.5s ease-out;
}

@media (min-width: 1024px) {
  .stage-panel {
    top: clamp(140px, 19vh, 185px);
  }
}

/* Pure text styling with high-contrast subtle shadow for clean legibility on video background */
.stage-panel h1,
.stage-panel h2,
.stage-panel p,
.stage-panel div {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 4px 30px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1023px) {
  .molten-scroll-experience {
    height: auto !important;
    position: relative !important;
    background-color: #04151a !important;
    overflow: hidden !important;
  }

  .molten-scroll-experience #molten-pinned-viewport {
    height: auto !important;
    min-height: 100vh;
    padding-top: 6.5rem !important;
    padding-bottom: 4.5rem !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  #molten-video-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  #molten-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 21, 26, 0.78) 0%, rgba(0, 0, 0, 0.85) 45%, #04151a 100%);
    pointer-events: none;
    z-index: 1;
  }

  #molten-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .stage-panel {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 620px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-bottom: 4.5rem !important;
    z-index: 10 !important;
    filter: none !important;
  }

  .stage-panel:last-child {
    margin-bottom: 0 !important;
  }
}