/* ─────────────────────────────────────────────
   BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
  background: #6C63FF33;
  color: #E8E6F0;
}

:focus-visible {
  outline: 2px solid #6C63FF;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
#header {
  background: transparent;
  backdrop-filter: none;
}

#header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #7A7890;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover { color: #E8E6F0; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6C63FF;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 #6C63FF44;
}

.cta-btn:hover {
  background: #4F48CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px #6C63FF44;
}

.cta-btn:active { transform: translateY(0); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #E8E6F0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.ghost-btn:hover {
  border-color: rgba(108,99,255,0.5);
  background: rgba(108,99,255,0.07);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   HERO BLOBS
───────────────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #6C63FF22, transparent 70%);
  top: -10%;
  right: -5%;
}

.blob-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #4F48CC15, transparent 70%);
  bottom: 5%;
  left: -5%;
}

.blob-3 {
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, #6C63FF18, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#hero > .max-w-6xl { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   HEADSHOT
───────────────────────────────────────────── */
.headshot-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

@media (min-width: 768px) {
  .headshot-wrapper { width: 340px; height: 340px; }
}

.headshot-ring {
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: conic-gradient(from 0deg, #6C63FF, #1E1B2E 40%, #6C63FF 80%, #1E1B2E);
  animation: spin 8s linear infinite;
  opacity: 0.7;
}

@keyframes spin { to { transform: rotate(360deg); } }

.headshot-inner {
  position: absolute;
  inset: 3px;
  border-radius: 9999px;
  overflow: hidden;
  background: #1E1B2E;
}

.headshot-inner img,
.headshot-inner svg { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────────────────────────────────────
   SCROLL CUE
───────────────────────────────────────────── */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.4;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6C63FF;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}

/* ─────────────────────────────────────────────
   SECTION LABELS
───────────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6C63FF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #6C63FF;
  opacity: 0.7;
}

/* ─────────────────────────────────────────────
   ABOUT — VALUE CARDS
───────────────────────────────────────────── */
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #13111F;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.value-card:hover {
  border-color: rgba(108,99,255,0.2);
  background: #1a1729;
}

.value-icon {
  font-size: 1.25rem;
  min-width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108,99,255,0.1);
  border-radius: 0.5rem;
}

/* ─────────────────────────────────────────────
   PROJECTS GRID
───────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background: #13111F;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.2s ease;
  position: relative;
  cursor: pointer;
}

/* Edge-glow hover — the signature effect */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), #6C63FF18, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before { opacity: 1; }

.project-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .project-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.project-image {
  height: 200px;
  overflow: hidden;
  background: #0e0c1a;
}

.project-card--featured .project-image {
  height: 100%;
  min-height: 220px;
}

.project-image--sm { height: 160px; }

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #13111F 0%, #1E1B2E 100%);
}

.project-placeholder-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A7890;
  opacity: 0.5;
}

.project-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-link-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A7890;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}

.project-link-icon:hover {
  border-color: #6C63FF;
  color: #6C63FF;
  background: rgba(108,99,255,0.08);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #6C63FF;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: 0.35rem;
  padding: 0.25rem 0.6rem;
}

/* ─────────────────────────────────────────────
   SKILLS
───────────────────────────────────────────── */
.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 640px) {
  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.skill-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A7890;
  padding-top: 0.35rem;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  color: #7A7890;
  background: #13111F;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.skill-badge:hover {
  color: #E8E6F0;
  border-color: rgba(255,255,255,0.15);
  background: #1E1B2E;
}

.skill-badge--accent {
  color: #E8E6F0;
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.25);
}

.skill-badge--accent:hover {
  background: rgba(108,99,255,0.2);
  border-color: rgba(108,99,255,0.45);
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
}

/* ─────────────────────────────────────────────
   CONTACT — FORM
───────────────────────────────────────────── */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #7A7890;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-input {
  width: 100%;
  background: #0A0A0F;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  color: #E8E6F0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder { color: #3e3c52; }

.form-input:focus {
  border-color: rgba(108,99,255,0.5);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

/* ─────────────────────────────────────────────
   SOCIAL LINKS
───────────────────────────────────────────── */
.social-link {
  color: #7A7890;
  transition: color 0.2s ease, transform 0.15s ease;
  display: block;
}

.social-link:hover {
  color: #E8E6F0;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in-up.is-visible {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100.is-visible { animation-delay: 0.1s; }
.delay-150.is-visible { animation-delay: 0.15s; }
.delay-200.is-visible { animation-delay: 0.2s; }
.delay-300.is-visible { animation-delay: 0.3s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up { opacity: 1 !important; transform: none !important; animation: none !important; }
  .headshot-ring { animation: none; }
  .scroll-dot { animation: none; }
  .cta-btn:hover, .ghost-btn:hover { transform: none; }
}
