/* ==========================================================================
   iamzeeshan.in - Professional Light Tech Portfolio Stylesheet
   Inspired by Sawad & Modern Framer Design Language
   Tactile Elegance, Clean Typography & High-Contrast Precision
   ========================================================================== */

:root {
  --color-bg-base: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  --color-ink-primary: #0f172a;
  --color-ink-secondary: #475569;
  --color-ink-muted: #94a3b8;

  --brand-blue: #2563eb;
  --brand-indigo: #4f46e5;
  --brand-emerald: #10b981;
  --brand-orange: #f46c38;
  --brand-dark: #0f172a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection Color */
::selection {
  background: rgba(37, 99, 235, 0.15);
  color: #1e3a8a;
}

/* Tactile Micro-Grid Background */
.tech-grid-bg {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 100% 15%, rgba(244, 108, 56, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 0% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
    radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  background-position: center top;
}

/* Professional Card Surfaces (Sawad-style Clean Elevation) */
.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

/* Floating Clean Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Subtle Interactive Border Accent */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(99, 102, 241, 0.15), 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;
}

/* 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: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  transition: all 0.2s ease;
}

.tech-pill:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #e2e8f0;
}

/* 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 (Dark Precision Block within Light Layout) */
.terminal-window {
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.2);
  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.12);
  background: rgba(15, 23, 42, 0.6);
}

.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 #334155;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  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, #2563eb 20%, #10b981 50%, #2563eb 80%, transparent);
  box-shadow: 0 0 16px #2563eb, 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 15px rgba(239, 68, 68, 0.15); 
  }
  50% { 
    border-color: rgba(239, 68, 68, 0.8); 
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.3); 
  }
}

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

.lab-canvas-container {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

/* Sawad-Style Big Editorial Headlines */
.editorial-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

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