/* -------------------------------------------------------------
   Katta Sai Pranav Reddy - Portfolio Stylesheet
   Modern Cyberpunk / AI Glassmorphism Theme
------------------------------------------------------------- */

:root {
  --color-primary: #06b6d4;
  --color-primary-glow: rgba(6, 182, 212, 0.4);
  --color-secondary: #8b5cf6;
  --color-accent: #10b981;
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.75);
}

/* Theme variations */
body[data-theme="purple"] {
  --color-primary: #a855f7;
  --color-primary-glow: rgba(168, 85, 247, 0.4);
  --color-secondary: #ec4899;
}

body[data-theme="emerald"] {
  --color-primary: #10b981;
  --color-primary-glow: rgba(16, 185, 129, 0.4);
  --color-secondary: #06b6d4;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: #030712;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: #e2e8f0;
}

/* Professional Engineering Grid Overlay */
.bg-blueprint-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 25%, #000 30%, rgba(0, 0, 0, 0.4) 60%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 30%, rgba(0, 0, 0, 0.4) 60%, transparent 85%);
}

/* Multi-layer Radial Spotlights */
.bg-spotlight-top {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  height: 650px;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.14) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.bg-spotlight-mid {
  position: fixed;
  top: 45%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.09) 0%, rgba(236, 72, 153, 0.04) 50%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.bg-spotlight-bottom {
  position: fixed;
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #05070e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 2px solid #05070e;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Custom Cursor */
#custom-cursor {
  mix-blend-mode: screen;
  transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
#custom-cursor.hovering {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.1);
}

/* Navigation link active styling */
.nav-link {
  transition: all 0.2s ease;
}
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

/* Glassmorphism Card Style */
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Project Filter Buttons */
.filter-btn {
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-btn:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
}
.filter-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  color: #38bdf8;
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

/* Tech Pills */
.tech-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}
.tech-pill:hover {
  border-color: rgba(6, 182, 212, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

/* Terminal Styling */
#terminal-output::-webkit-scrollbar {
  width: 6px;
}
#terminal-output::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.term-cmd-user {
  color: #38bdf8;
  font-weight: 600;
}
.term-res-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 0.35rem;
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast styling */
.toast-msg {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.4);
  backdrop-filter: blur(12px);
  color: #f1f5f9;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.2);
  animation: fadeIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
