/* ==========================================================================
   Raj Kohli - Modern UI/UX Designer Portfolio Custom Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #07060f;
  --bg-card: rgba(18, 16, 38, 0.65);
  --bg-card-hover: rgba(26, 23, 56, 0.85);
  --primary-purple: #8B5CF6;
  --primary-glow: #6366F1;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(139, 92, 246, 0.35);
}

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #F3F4F6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  letter-spacing: -0.015em;
}

.font-tech {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
}

code, pre, .font-mono, .font-tech-mono {
  font-family: 'JetBrains Mono', monospace;
}

.font-handwriting {
  font-family: 'Caveat', cursive;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080711;
}
::-webkit-scrollbar-thumb {
  background: #2D2755;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366F1;
}

/* Mouse Follower Glow */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: transform 0.15s ease-out;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(18, 15, 38, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(26, 22, 54, 0.75);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.2);
}

.glass-nav {
  background: rgba(8, 7, 17, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glowing Elements */
.glow-purple {
  box-shadow: 0 0 40px -10px rgba(139, 92, 246, 0.5);
}

.glow-purple-sm {
  box-shadow: 0 0 20px -5px rgba(139, 92, 246, 0.4);
}

.glow-cyan {
  box-shadow: 0 0 35px -10px rgba(6, 182, 212, 0.5);
}

/* Ambient Background Lights */
.ambient-glow-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(79, 70, 229, 0.08) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 35%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(236, 72, 153, 0.08) 50%, transparent 75%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-3 {
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Hero Portrait Backdrop Aura */
.portrait-aura {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.45) 0%, rgba(99, 102, 241, 0.25) 40%, rgba(67, 56, 202, 0.1) 65%, transparent 80%);
}

.hero-portrait-mask {
  mask-image: linear-gradient(to bottom, black 70%, rgba(0,0,0,0.5) 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, rgba(0,0,0,0.5) 85%, transparent 100%);
}

.hero-glow-backdrop {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(99, 102, 241, 0.25) 40%, rgba(67, 56, 202, 0.08) 65%, transparent 80%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* Text Gradients */
.text-gradient-purple {
  background: linear-gradient(135deg, #FFFFFF 20%, #C4B5FD 60%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #A78BFA 0%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gradient Buttons */
.btn-gradient-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #4F46E5 100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(124, 58, 237, 0.5);
}

.btn-gradient-primary:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6366F1 100%);
  box-shadow: 0 8px 30px -2px rgba(139, 92, 246, 0.7);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-1deg);
  }
}

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

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

/* Tool Badges Glassmorphism & Neon Glow */
.tool-badge-glass {
  background: rgba(13, 10, 30, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.tool-badge-glass:hover {
  transform: translateY(-8px) scale(1.15) !important;
  z-index: 40 !important;
}

.tool-badge-ps {
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 28px -4px rgba(6, 182, 212, 0.45);
}
.tool-badge-ps:hover {
  border-color: #22d3ee;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.75);
}

.tool-badge-spline {
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 28px -4px rgba(236, 72, 153, 0.45);
}
.tool-badge-spline:hover {
  border-color: #f472b6;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(236, 72, 153, 0.75);
}

.tool-badge-chatgpt {
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 28px -4px rgba(16, 185, 129, 0.45);
}
.tool-badge-chatgpt:hover {
  border-color: #34d399;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.75);
}

.tool-badge-figma {
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 28px -4px rgba(168, 85, 247, 0.45);
}
.tool-badge-figma:hover {
  border-color: #c084fc;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.75);
}

.tool-badge-claude {
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75), 0 0 28px -4px rgba(217, 119, 87, 0.45);
}
.tool-badge-claude:hover {
  border-color: #fb923c;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 119, 87, 0.75);
}

/* Organic Parallax Floating Keyframes */
@keyframes float-badge-1 {
  0%, 100% { transform: translateY(0px) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes float-badge-2 {
  0%, 100% { transform: translateY(0px) rotate(6deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float-badge-3 {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(12px) rotate(1deg); }
}

@keyframes float-badge-4 {
  0%, 100% { transform: translateY(0px) rotate(4deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes float-badge-5 {
  0%, 100% { transform: translateY(0px) rotate(-4deg); }
  50% { transform: translateY(11px) rotate(2deg); }
}

.animate-float-badge-1 { animation: float-badge-1 5.4s ease-in-out infinite; }
.animate-float-badge-2 { animation: float-badge-2 6.2s ease-in-out infinite; }
.animate-float-badge-3 { animation: float-badge-3 5.8s ease-in-out infinite; }
.animate-float-badge-4 { animation: float-badge-4 6.6s ease-in-out infinite; }
.animate-float-badge-5 { animation: float-badge-5 5.0s ease-in-out infinite; }

/* Radar pulse animation for online status */
@keyframes radar-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.radar-dot {
  animation: radar-pulse 2s infinite;
}

/* Interactive Pill Chips */
.pill-choice {
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.pill-choice.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%);
  border-color: #8B5CF6;
  color: #FFFFFF;
  box-shadow: 0 0 15px -2px rgba(139, 92, 246, 0.5);
}

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Toast Notification */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Project Card Overlay on Hover */
.project-card .project-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card .overlay-badge {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.project-card:hover .overlay-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Comprehensive Responsive Enhancements (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Prevent horizontal scroll under all conditions */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
}

/* Responsive Ambient Glows */
@media (max-width: 768px) {
  .ambient-glow-1 {
    width: 350px;
    height: 350px;
    top: -5%;
    left: -10%;
    filter: blur(60px);
  }
  
  .ambient-glow-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -20%;
    filter: blur(70px);
  }
  
  .ambient-glow-3 {
    width: 350px;
    height: 350px;
    bottom: 5%;
    left: -15%;
    filter: blur(60px);
  }
  
  .hero-glow-backdrop {
    width: 300px;
    height: 300px;
    filter: blur(70px);
  }
  
  /* Always show project direct links on touch screens */
  .project-card .overlay-badge {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Toast full width on mobile */
  #toast-notification {
    min-width: 0 !important;
    width: calc(100vw - 32px) !important;
    max-width: 420px !important;
    left: 16px !important;
    right: 16px !important;
    transform: translateY(120px) !important;
  }
  
  #toast-notification.show {
    transform: translateY(0) !important;
  }
}

@media (max-width: 640px) {
  /* Smaller, tighter float on mobile */
  @keyframes float-badge-1 {
    0%, 100% { transform: translateY(0px) rotate(-4deg); }
    50% { transform: translateY(-6px) rotate(-1deg); }
  }

  @keyframes float-badge-2 {
    0%, 100% { transform: translateY(0px) rotate(4deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
  }

  @keyframes float-badge-3 {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(6px) rotate(1deg); }
  }

  @keyframes float-badge-4 {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-7px) rotate(-1deg); }
  }

  @keyframes float-badge-5 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(6px) rotate(1deg); }
  }
}
