@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #0a0814;
  --bg-secondary: #110d21;
  --bg-surface: #17122b;
  --bg-hover: #1e1837;
  --border-subtle: #241c3d;
  --border-focus: #43336e;
  --text-primary: #f3f2f8;
  --text-secondary: #a39cb8;
  --text-muted: #6b6385;
  --accent-soft: #a78bfa;
  --accent-deep: #7c3aed;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-focus);
}

/* Background Canvas */
#three-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* Cursor Glow Tracker (Hidden on touch devices for performance) */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, rgba(124, 58, 237, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

@media (pointer: coarse) {
  #cursor-glow {
    display: none;
  }
}

/* Clean UI Cards */
.clean-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.clean-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-surface);
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.bento-card:hover {
  border-color: var(--border-focus);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

/* Tech Pills & Tags */
.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6d28d9;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--border-subtle);
  border-color: var(--border-focus);
}

/* Interactive Filter Tabs */
.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-color: var(--accent-soft);
}

/* Modal and Lightbox styles */
#projectModal, #photoViewer {
  transform: none !important;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary {
    font-size: 0.8125rem;
    padding: 0.5rem 0.9rem;
  }
}
