/* ==========================================================================
   Jahanzaib Ahmad — Full-Stack Web Developer Portfolio
   Theme: Figma Cosmic Deep Purple & Neon Violet Glassmorphism
   Typography: Preahvihear (Display/Headings), Poppins (Body/Cards), Plus Jakarta Sans (Nav/UI)
   ========================================================================== */

:root {
  --bg-cosmic: #11071F;
  --bg-surface: #190B2D;
  --bg-card: rgba(43, 17, 79, 0.45);
  --border-card: rgba(151, 87, 211, 0.25);
  --border-card-hover: rgba(162, 97, 255, 0.55);
  
  --purple-glow: #9757D3;
  --purple-vibrant: #A261FF;
  --purple-deep: #7127BA;
  --text-white: #FFFFFF;
  --text-muted: #CCD6F6;
  --text-dim: #94A3B8;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-cosmic);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.font-preahvihear {
  font-family: 'Preahvihear', sans-serif;
}

.font-jakarta {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Background Ambient Glow Overlay */
.cosmic-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 50% 8%, rgba(113, 39, 186, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 80% 28%, rgba(78, 34, 141, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 50% 48%, rgba(113, 39, 186, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 80% 68%, rgba(113, 39, 186, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(113, 39, 186, 0.25) 0%, transparent 45%);
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #0d0519;
}
::-webkit-scrollbar-thumb {
  background: #2b114f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-deep);
}

/* 2x2 Work Experience Card (Exact Figma Gradient) */
.figma-experience-card {
  background: linear-gradient(135deg, #130428 7%, #251043 34%, #38126e 57%, #261045 85%, #190634 100%);
  border-radius: 15px;
  border: 1px solid rgba(151, 87, 211, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.figma-experience-card:hover {
  border-color: rgba(162, 97, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(113, 39, 186, 0.4);
}

/* LEARN MORE Pill Button */
.btn-figma-learn-more {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.3rem;
  border-radius: 9999px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-figma-learn-more:hover {
  background: var(--purple-deep);
  border-color: var(--purple-vibrant);
  box-shadow: 0 0 15px rgba(151, 87, 211, 0.6);
}

/* Purple Primary CTA Button */
.btn-purple-primary {
  background: linear-gradient(135deg, #7127BA 0%, #9757D3 100%);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(113, 39, 186, 0.45);
  transition: all 0.25s ease;
}
.btn-purple-primary:hover {
  background: linear-gradient(135deg, #8432db 0%, #a56ef7 100%);
  box-shadow: 0 6px 28px rgba(162, 97, 255, 0.65);
  transform: translateY(-2px);
}

/* Purple Glass Outline Button */
.btn-purple-glass {
  background: rgba(43, 17, 79, 0.45);
  border: 1px solid rgba(151, 87, 211, 0.4);
  color: #FFFFFF;
  font-weight: 500;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.btn-purple-glass:hover {
  background: rgba(113, 39, 186, 0.35);
  border-color: var(--purple-vibrant);
  box-shadow: 0 0 20px rgba(151, 87, 211, 0.35);
}

/* Overlapping Featured Project Card */
.figma-project-card {
  background: rgba(25, 11, 45, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid rgba(151, 87, 211, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(113, 39, 186, 0.25);
  z-index: 20;
}

/* Project Browser Frame */
.figma-project-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(151, 87, 211, 0.2);
  transition: all 0.3s ease;
}
.figma-project-frame:hover {
  border-color: rgba(162, 97, 255, 0.5);
  transform: scale(1.01);
}

/* Ambient Radial Glow Elements */
.ambient-glow-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113, 39, 186, 0.35) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Typewriter Blinking Cursor */
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  color: var(--purple-vibrant);
  animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #25133d;
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-vibrant);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(162, 97, 255, 0.8);
  transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Selection */
::selection {
  background: var(--purple-deep);
  color: #FFFFFF;
}

/* Accessibility Focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--purple-vibrant);
  outline-offset: 3px;
}

/* AI Agent Autonomous Window & Dock */
.ai-chat-window {
  width: 410px;
  max-width: calc(100vw - 1.5rem);
  height: 560px;
  max-height: calc(100vh - 5rem);
  background: rgba(20, 9, 38, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(162, 97, 255, 0.4);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(113, 39, 186, 0.45);
}

.agent-thought-card {
  background: rgba(43, 17, 79, 0.45);
  border-left: 2px solid #A261FF;
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.5rem;
  font-family: monospace;
  font-size: 10px;
  color: #D8B4FE;
  animation: fadeIn 0.3s ease;
}

.agent-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-family: monospace;
  font-size: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.agent-card-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}
.ai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(162, 97, 255, 0.3);
  border-radius: 3px;
}
.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(162, 97, 255, 0.6);
}

.ai-chat-chips::-webkit-scrollbar {
  height: 4px;
}
.ai-chat-chips::-webkit-scrollbar-thumb {
  background: rgba(162, 97, 255, 0.3);
  border-radius: 2px;
}


