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

/* Design System & Custom Properties */
:root {
  --color-bg: #07090e;
  --color-obsidian: #0b0f17;
  --color-card-bg: rgba(11, 15, 23, 0.6);
  --color-card-border: rgba(255, 255, 255, 0.05);
  
  /* Glowing Accents */
  --color-cyan: #00f0ff;
  --color-violet: #7000ff;
  --color-emerald: #00ff87;
  --color-magenta: #ff007a;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Shorthand Glow Shadow Effects */
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.15);
  --glow-violet: 0 0 25px rgba(112, 0, 255, 0.2);
  --glow-emerald: 0 0 20px rgba(0, 255, 135, 0.15);
  --glow-magenta: 0 0 20px rgba(255, 0, 122, 0.15);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: #f3f4f6;
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080b11;
}
::-webkit-scrollbar-thumb {
  background: rgba(112, 0, 255, 0.3);
  border-radius: 4px;
  border: 2px solid #080b11;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Mesh Background Gradient */
.bg-mesh {
  background-image: 
    radial-gradient(at 10% 20%, rgba(112, 0, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 0, 122, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Glowing Orbs */
.glowing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  mix-blend-mode: screen;
}
.orb-cyan {
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}
.orb-violet {
  background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
}
.orb-magenta {
  background: radial-gradient(circle, var(--color-magenta) 0%, transparent 70%);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--color-card-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
  position: relative;
  background: rgba(15, 22, 36, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Interactive Mouse-Tracking Hover Glow */
.interactive-glow-card {
  position: relative;
}
.interactive-glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px; /* Border thickness */
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(0, 240, 255, 0.35) 0%,
    rgba(112, 0, 255, 0.2) 30%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.interactive-glow-card:hover::before {
  opacity: 1;
}

.interactive-glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(0, 240, 255, 0.04),
    rgba(112, 0, 255, 0.02) 40%,
    transparent 70%
  );
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.interactive-glow-card:hover::after {
  opacity: 1;
}

/* Specific Card Theme Glows */
.theme-glow-cyan:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15), var(--glow-cyan);
}
.theme-glow-violet:hover {
  border-color: rgba(112, 0, 255, 0.3);
  box-shadow: 0 10px 30px -10px rgba(112, 0, 255, 0.15), var(--glow-violet);
}
.theme-glow-emerald:hover {
  border-color: rgba(0, 255, 135, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 135, 0.15), var(--glow-emerald);
}
.theme-glow-magenta:hover {
  border-color: rgba(255, 0, 122, 0.3);
  box-shadow: 0 10px 30px -10px rgba(255, 0, 122, 0.15), var(--glow-magenta);
}

/* Animations */
@keyframes gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient-text {
  background: linear-gradient(
    90deg, 
    #ffffff 0%, 
    var(--color-cyan) 25%, 
    var(--color-violet) 50%, 
    var(--color-magenta) 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 8s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

/* Custom Checkbox/Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-cyan);
  transition: transform 0.1s ease, background-color 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #ffffff;
}

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }

/* Custom Timeline line styling */
.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-violet) 50%, var(--color-magenta) 100%);
  z-index: 0;
}
@media (min-width: 768px) {
  .timeline-line::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Dynamic glow badges for stack items */
.stack-badge {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}
.stack-badge:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

/* Custom tab trigger styles */
.tab-trigger.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
  border-color: rgba(0, 240, 255, 0.3);
  color: #ffffff;
}

/* Custom interactive navigation styles */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet));
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Magnetic Hover wrapper class */
.btn-glow-cyan {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.btn-glow-cyan:hover {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 5px rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.btn-glow-violet {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
}
.btn-glow-violet:hover {
  box-shadow: 0 0 25px rgba(112, 0, 255, 0.5), inset 0 0 5px rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

/* Card 3D Perspective container */
.perspective-container {
  perspective: 1000px;
}

/* Form floating labels */
.form-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  background: rgba(11, 15, 23, 0.9);
}

/* Custom CSS for calculator item selections */
.calc-option {
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.calc-option.selected {
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: var(--glow-cyan);
}
.calc-option.selected .option-icon {
  color: var(--color-cyan);
}

.calc-feature {
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}
.calc-feature.selected {
  border-color: var(--color-violet);
  background: rgba(112, 0, 255, 0.05);
  box-shadow: var(--glow-violet);
}
.calc-feature.selected .feature-checkbox {
  background: var(--color-violet);
  border-color: var(--color-violet);
}

/* Lucide Icon override styles */
.lucide {
  stroke-width: 1.8;
  display: inline-block;
  vertical-align: middle;
}
