:root {
  --cy-bg: #f5f6fa;
  --cy-surface: #ffffff;
  --cy-surface-2: #f1f2f6;
  --cy-neon-purple: #9b00e8;
  --cy-neon-blue: #00b8d4;
  --cy-neon-pink: #d8004f;
  --cy-text: #1e2022;
  --cy-muted: #5e646a;
  --cy-border: rgba(0, 0, 0, 0.08);
  --cy-glass: rgba(255, 255, 255, 0.85);
  --cy-glass-border: rgba(0, 0, 0, 0.05);
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body.cyberpunk-theme {
  background-color: var(--cy-bg) !important;
  color: var(--cy-text) !important;
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Animations */
@keyframes neonPulse {
  0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), 0 0 20px rgba(0, 229, 255, 0.2); }
  50% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.3); }
  100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), 0 0 20px rgba(0, 229, 255, 0.2); }
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Cyberpunk specific styles */
.cyberpunk-theme .navbar-main {
  background: var(--cy-glass) !important;
  border-bottom: 1px solid var(--cy-glass-border) !important;
  backdrop-filter: blur(15px);
}

.cyberpunk-theme .nav-link-main {
  color: var(--cy-text) !important;
}

.cyberpunk-theme .nav-link-main:hover {
  color: var(--cy-neon-purple) !important;
}

.cyberpunk-theme .navbar-brand-text {
  color: var(--cy-text) !important;
  letter-spacing: 2px;
}

.cyberpunk-theme .navbar-brand-text span {
  color: var(--cy-neon-blue);
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.cyberpunk-theme .nav-link-main::after {
  background: var(--cy-neon-purple) !important;
}

.cyberpunk-theme .btn-nav-primary {
  background: transparent !important;
  border: 1px solid var(--cy-neon-purple) !important;
  box-shadow: 0 0 10px rgba(155, 0, 232, 0.1) !important;
  color: var(--cy-neon-purple) !important;
}

.cyberpunk-theme .btn-nav-primary:hover {
  background: rgba(155, 0, 232, 0.05) !important;
  color: var(--cy-neon-purple) !important;
  box-shadow: 0 0 15px rgba(155, 0, 232, 0.2) !important;
}

.cyberpunk-theme .hero-section {
  background: var(--cy-bg) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cyberpunk-theme .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(155, 0, 232, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 184, 212, 0.05) 0%, transparent 40%) !important;
  z-index: 0;
}

.cyberpunk-theme .hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: bottom;
  z-index: 0;
  opacity: 0.4;
}

.cyberpunk-theme .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cyberpunk-theme .hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #1e2022 0%, #5e646a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.cyberpunk-theme .hero-subtitle {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cy-neon-purple);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 15px rgba(179, 0, 255, 0.5);
  margin-bottom: 2rem;
}

.cyberpunk-theme .btn-cyber {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--cy-neon-blue);
  color: var(--cy-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 1.2rem 3.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  animation: neonPulse 3s infinite;
  z-index: 2;
}

.cyberpunk-theme .btn-cyber:hover {
  background: rgba(0, 229, 255, 0.1);
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), inset 0 0 10px rgba(0, 229, 255, 0.3);
}

.cyberpunk-theme .floating-hero-img {
  animation: floatAnim 6s ease-in-out infinite;
  max-width: 100%;
  filter: drop-shadow(0 0 30px rgba(179, 0, 255, 0.4));
  z-index: 2;
  position: relative;
}

.cyberpunk-theme section {
  background-color: var(--cy-bg) !important;
  color: var(--cy-text) !important;
}

.cyberpunk-theme .product-card {
  background: var(--cy-surface) !important;
  border: 1px solid var(--cy-border) !important;
  border-radius: 12px !important;
}

.cyberpunk-theme .product-card:hover {
  border-color: var(--cy-neon-purple) !important;
  box-shadow: 0 0 20px rgba(179, 0, 255, 0.2) !important;
  transform: translateY(-5px);
}

.cyberpunk-theme .product-card .card-body {
  background: var(--cy-surface-2) !important;
}

.cyberpunk-theme .text-muted {
  color: var(--cy-muted) !important;
}

.cyberpunk-theme .bg-white {
  background-color: var(--cy-surface) !important;
}

.cyberpunk-theme .border {
  border-color: var(--cy-border) !important;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.2)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.15;
}

/* Scroll Animations */
.cyber-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.hero-section {
    perspective: 1000px;
}

.hero-content {
    animation: slideInLeft 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.floating-hero-img {
    animation: floatAnim 6s ease-in-out infinite, slideInRight 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100px) rotateY(-20deg); }
    100% { opacity: 1; transform: translateX(0) rotateY(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100px) rotateY(20deg); }
    100% { opacity: 1; transform: translateX(0) rotateY(0); }
}

/* Make image swap out on scroll simulate the video's behavior */
.scroll-image-container {
    position: sticky;
    top: 10vh;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.scroll-image-container img {
    max-height: 70vh;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--cy-neon-purple));
    transition: opacity 0.5s, transform 0.5s;
}

/* RTL Specific fixes for Scroll layout */
[dir="rtl"] .cyber-text-block {
    transform: translateX(50px);
}
[dir="rtl"] .cyber-text-block.animate-in {
    transform: translateX(0);
}

.section-text-scroll {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
}

.cyber-text-block {
    background: var(--cy-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--cy-glass-border);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.cyber-text-block.animate-in {
    transform: translateX(0);
    opacity: 1;
}

.cyber-text-block h2 {
    color: var(--cy-text);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

.cyber-text-block p {
    color: var(--cy-muted);
}
