/* Modern Developer Portfolio Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0a0f18;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 34, 58, 0.75);
  --border-card: rgba(148, 163, 184, 0.1);
  --border-card-hover: rgba(45, 212, 191, 0.3);
  --accent-teal: #2dd4bf;
  --accent-teal-hover: #5eead4;
  --accent-teal-bg: rgba(45, 212, 191, 0.1);
  --accent-teal-border: rgba(45, 212, 191, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Subtle Radial Gradient and Spotlight Glow */
.spotlight-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(45, 212, 191, 0.08),
    transparent 80%
  );
}

/* 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 Highlight */
::selection {
  background: rgba(45, 212, 191, 0.25);
  color: #5eead4;
}

/* Navigation Indicator Links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link .nav-indicator {
  display: inline-block;
  height: 1px;
  width: 2rem;
  background-color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
  color: #f1f5f9;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 4rem;
  height: 2px;
  background-color: var(--accent-teal);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.6);
}

.nav-link.active {
  color: var(--accent-teal-hover);
}

/* Cards with Interactive Glow & Hover */
.portfolio-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 0.875rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.portfolio-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(45, 212, 191, 0.15);
  transform: translateY(-2px);
}

/* External Link Arrow Animation */
.arrow-icon {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .arrow-icon {
  transform: translate(3px, -3px);
  color: var(--accent-teal);
}

/* Badges / Tech Tags */
.tech-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--accent-teal-bg);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal-border);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tech-tag:hover {
  background-color: rgba(45, 212, 191, 0.2);
  border-color: rgba(45, 212, 191, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

/* Status Pill (Open to opportunities) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #34d399;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.pulse-dot .ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #34d399;
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot .dot {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background-color: #10b981;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Save CV Button */
.btn-save-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  background-color: rgba(19, 78, 74, 0.35);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #5eead4;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-save-cv:hover {
  background-color: rgba(19, 78, 74, 0.65);
  border-color: #2dd4bf;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.3);
  transform: translateY(-1px);
}

/* Social Icon Link */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 0.25rem;
}

.social-icon-btn:hover {
  color: #f1f5f9;
  transform: translateY(-2px);
}

/* Toast Notification */
#toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background-color: #0f172a;
  border: 1px solid var(--accent-teal);
  color: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(45, 212, 191, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Project Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #0f172a;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 1rem;
  max-width: 38rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(45, 212, 191, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

/* Print Styles (CV / Resume Output) */
@media print {
  body {
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt;
  }
  .spotlight-overlay,
  nav,
  .status-pill,
  .btn-save-cv,
  .social-icons-wrapper,
  #toast-notification,
  .modal-backdrop {
    display: none !important;
  }
  .layout-container {
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .left-column {
    position: static !important;
    height: auto !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
  }
  .left-column h1 {
    color: #0f172a !important;
  }
  .portfolio-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 1.25rem 0 !important;
    page-break-inside: avoid;
  }
  .tech-tag {
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
  }
  h2, h3 {
    color: #0f172a !important;
  }
  p, li {
    color: #334155 !important;
  }
}
