@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-dark: #0a0a0c;
  --glass-bg: rgba(25, 25, 30, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --jb-dark: #1e1e1e;
  --jb-darker: #181818;
  --gold-primary: #FFB800;
  --gold-secondary: #FFD700;
  --gold-glow: rgba(255, 184, 0, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair; /* Year 3000 custom cursor */
}

a, button, .btn, .nav-item {
  cursor: crosshair; /* Enforce sci-fi cursor */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Animated Background Orbs (Disabled in favor of Universe Canvas) */
.bg-orb {
  display: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: floatOrb 20s infinite alternate ease-in-out;
  opacity: 0.6;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 184, 0, 0.15);
  top: -10%;
  left: -10%;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(255, 215, 0, 0.1);
  top: 40%;
  left: 60%;
  animation-duration: 25s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 100px) scale(1.1); }
  100% { transform: translate(-50px, -50px) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  overflow: hidden;
}

/* Button Pulse Animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 184, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}

.btn-primary {
  background-color: var(--gold-primary);
  color: #000;
  animation: pulseGlow 3s infinite;
}

.btn-primary:hover {
  background-color: var(--gold-secondary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px var(--gold-glow);
  animation: none; /* Stop pulse on hover, use hover shadow instead */
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Mega-Menu Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 40px;
  border-radius: 8px;
}

.nav-brand span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--gold-primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-item:hover {
  color: var(--gold-primary);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 600px;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 16px 16px;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  cursor: default;
}

.mega-col h4 {
  color: var(--gold-primary);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  color: var(--text-primary);
}

.mega-link:hover {
  background: rgba(255,255,255,0.05);
}

.mega-link .icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,184,0,0.1);
  border-radius: 6px;
  border: 1px solid var(--gold-primary);
}

.mega-link div p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px; /* navbar offset */
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary), #fff, var(--gold-primary));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* IDE Code Window */
.ide-section {
  padding: 100px 0;
  background: #0C0C0C;
  position: relative;
  z-index: 10;
}

#ide-window {
  background: var(--jb-darker);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.ide-header {
  background: var(--jb-dark);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.ide-dots {
  display: flex;
  gap: 8px;
}

.ide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.ide-dot.r { background: #FF5F56; }
.ide-dot.y { background: #FFBD2E; }
.ide-dot.g { background: #27C93F; }

.ide-title {
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
}

.ide-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  min-height: 300px;
}

/* Tabs Section */
.tabs-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.tabs-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  padding: 1rem 2rem;
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--gold-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Products Grid */
.products-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.section-title span {
  color: var(--gold-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 40px rgba(255, 184, 0, 0.15);
}

.product-card:hover::before {
  left: 200%;
}

.product-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Contact Form */
.contact-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
  background: var(--jb-darker);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
}
select.form-control option {
  background-color: #111;
  color: #fff;
}

/* Scroll Reveal Advanced Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.slide-left { transform: translateX(-50px); }
.reveal.slide-right { transform: translateX(50px); }

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .mega-menu {
    display: none !important;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-menu {
    gap: 1rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Deep Dive Feature Layouts */
.feature-split {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.feature-split.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: float 6s ease-in-out infinite;
  min-height: 300px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* Zero-G Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
  .feature-split, .feature-split.reverse {
    flex-direction: column;
  }
}

/* Dynamic Glass Shine Background UI */
@keyframes gradientTextFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gold {
  color: transparent !important;
  background: linear-gradient(90deg, var(--gold-primary), #fff, var(--gold-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientTextFlow 4s linear infinite;
}
.dynamic-bg-wrapper {
  position: relative;
  width: 100%;
  padding: 3rem;
  border-radius: 24px;
  background: rgba(25, 25, 25, 0.4); /* Base dark background */
  border: 1px solid var(--glass-border);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* The actual colored glow layer inside the wrapper */
.dynamic-bg-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hover-color, transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

.dynamic-bg-wrapper.is-hovered {
  border-color: var(--hover-color);
  box-shadow: 0 0 40px var(--hover-color);
}

.dynamic-bg-wrapper.is-hovered::before {
  opacity: 0.15; /* Soft glowing backdrop */
}

.massive-catalog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Glass Shine sweeping effect on the cards themselves */
.dynamic-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  position: relative;
}

.dynamic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  z-index: 2;
  pointer-events: none;
}

.dynamic-card:hover {
  transform: translateY(-10px);
  border-color: var(--card-color) !important;
  box-shadow: 0 10px 30px var(--card-color);
}

.dynamic-card:hover::after {
  left: 200%;
  transition: left 0.8s ease;
}

/* Production Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.cookie-banner a {
  color: var(--gold-primary);
  text-decoration: underline;
}

/* Massive 4-Column Corporate Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono';
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================
   YEAR 3000 AESTHETIC UPGRADES
   ========================================== */

/* 1. Holographic CRT Scanlines */
#crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  opacity: 0.8;
  animation: scanlineFlicker 0.15s infinite;
}

@keyframes scanlineFlicker {
  0% { opacity: 0.8; }
  50% { opacity: 0.75; }
  100% { opacity: 0.8; }
}

/* 2. 3D Perspective Synth-Grid */
#synth-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 40vh;
  z-index: -1;
  background-image: 
    linear-gradient(transparent 65%, rgba(255, 184, 0, 0.3) 75%, transparent 100%), 
    linear-gradient(90deg, transparent 24%, rgba(255, 184, 0, 0.15) 25%, transparent 26%);
  background-size: 100% 30px, 40px 100%;
  transform-origin: bottom;
  transform: perspective(300px) rotateX(80deg);
  animation: gridMove 2s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 30px; }
}

/* 3. Extreme Cyberpunk Text Glitch */
@keyframes textGlitch {
  0% { text-shadow: 2px 0 0 red, -2px 0 0 cyan; }
  20% { text-shadow: -2px 0 0 red, 2px 0 0 cyan; }
  40% { text-shadow: 2px 0 0 red, -2px 0 0 cyan; }
  60% { text-shadow: -2px 0 0 red, 2px 0 0 cyan; }
  80% { text-shadow: 2px 0 0 red, -2px 0 0 cyan; }
  100% { text-shadow: 0 0 0; }
}

h1:hover, .btn-primary:hover, .text-gold:hover {
  animation: textGlitch 0.3s steps(2) forwards;
}

/* 4. HUD Targeting Brackets for Cards */
.dynamic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 1px solid rgba(255, 184, 0, 0);
  transition: all 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

.dynamic-card:hover::before {
  border-color: var(--gold-primary);
  /* Create HUD bracket effect by hiding the middle parts of the border */
  clip-path: polygon(
    0 0, 20px 0, 20px 2px, 2px 2px, 2px 20px, 0 20px, 
    0 100%, 0 100%, 0 100%, 0 100%, 0 100%, 0 100%,
    0 calc(100% - 20px), 2px calc(100% - 20px), 2px calc(100% - 2px), 20px calc(100% - 2px), 20px 100%, 0 100%,
    100% 100%, calc(100% - 20px) 100%, calc(100% - 20px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 20px), 100% calc(100% - 20px),
    100% 0, 100% 20px, calc(100% - 2px) 20px, calc(100% - 2px) 2px, calc(100% - 20px) 2px, calc(100% - 20px) 0
  );
  box-shadow: inset 0 0 15px rgba(255, 184, 0, 0.5);
}
