/* ==========================================================================
   iamzeeshan.in - Modern Dark Tech Portfolio Stylesheet
   Designed for High Performance, Clean Glassmorphism & Developer Aesthetic
   ========================================================================== */

:root {
  --color-bg-base: #090d16;
  --color-bg-surface: #0f172a;
  --color-bg-card: rgba(15, 23, 42, 0.7);
  --color-bg-card-hover: rgba(30, 41, 59, 0.85);
  --color-border: rgba(148, 163, 184, 0.12);
  --color-border-glow: rgba(56, 189, 248, 0.35);
  
  --cyan-glow: #06b6d4;
  --emerald-glow: #10b981;
  --indigo-glow: #6366f1;
  --purple-glow: #8b5cf6;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  background-color: var(--color-bg-base);
  color: #e2e8f0;
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Selection Color */
::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #38bdf8;
}

/* Background Grids & Ambient Glow */
.tech-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 100% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: center top;
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.12);
  transform: translateY(-2px);
}

.glass-nav {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Glowing Border Accent */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(99, 102, 241, 0.3), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Neon Glow Accents */
.text-glow-cyan {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
}
.text-glow-emerald {
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

/* Badge Pill */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  transition: all 0.2s ease;
}

.tech-pill:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

/* Pulsing Status Dot */
.pulsing-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}
.pulsing-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Terminal Card Styling */
.terminal-window {
  background: #080c14;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.4);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

/* Interactive Project Card Image Zoom */
.project-card .project-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img {
  transform: scale(1.04);
}

/* Modal Overlay */
.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(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Interactive Hands-On Lab Styles */
@keyframes laser-sweep {
  0% { top: 0%; opacity: 0.9; }
  50% { top: 94%; opacity: 1; }
  100% { top: 0%; opacity: 0.9; }
}

.laser-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06b6d4 20%, #10b981 50%, #06b6d4 80%, transparent);
  box-shadow: 0 0 16px #06b6d4, 0 0 32px #10b981;
  animation: laser-sweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 20;
}

@keyframes alarm-pulse {
  0%, 100% { 
    border-color: rgba(239, 68, 68, 0.4); 
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); 
  }
  50% { 
    border-color: rgba(239, 68, 68, 0.9); 
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.5); 
  }
}

.alarm-active {
  animation: alarm-pulse 0.8s ease-in-out infinite;
}

.lab-canvas-container {
  background: #060910;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* Print Cleanliness */
@media print {
  .glass-nav, #toast-container, .modal-overlay {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
