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

/* Global */
html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: "acumin-pro", sans-serif;
  overflow-x: hidden;
  cursor: url("assets/Crosshair Purple.cur"), auto;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #440f7c;
  color: #fff;
}

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

p {
  line-height: 1.7;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #ff0095;
}
.skip-link:focus { top: 12px; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 220px;
  padding: 20px;
  background: #000;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
}

.sidebar-header {
  display: flex;
  gap: 12px;
}

.sidebar-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.sidebar-title {
  font-family: "digibop", sans-serif;
  font-size: 1.6rem;
  color: #fff;
}

.sidebar-list {
  list-style: none;
  margin-top: 12px;
}

/* Menu links */
.nav-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 0.2s, transform 0.2s;
}

.nav-link:hover {
  background: #440f7c;
  transform: translateX(4px);
}

.nav-link.active {
  background: #440f7c;
}

/* Projects dropdown */
.nav-group { position: relative; }

.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.caret {
  font-size: 0.8rem;
  transition: transform 0.25s;
}

.nav-group.open .caret,
.nav-group:hover .caret {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding-left: 12px;
}

.nav-group.open .submenu,
.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  max-height: 200px;
}

.nav-sublink {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.nav-sublink::before {
  content: "› ";
  color: #ff0095;
}

/* Footer links */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  text-transform: lowercase;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.2s;
}

.footer-link:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

/* Content */
.content {
  margin-left: 260px;
  padding: 20px;
}

section {
  padding: 80px 20px;
  border-bottom: 3px solid #222;
  scroll-margin-top: 20px;
}

section:last-of-type {
  border-bottom: none;
}

/* Headings */
h1, h2, h3 {
  font-family: "digibop", sans-serif;
  text-transform: lowercase;
}

h1 { font-size: 3rem; margin-bottom: 24px; }
h2 { font-size: 2.2rem; margin-bottom: 18px; }
h3 { font-size: 1.6rem; }

/* About */
.about-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  max-width: 900px;
}

.about-photo {
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #440f7c;
  box-shadow: 0 12px 30px rgba(68,15,124,0.55);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  font-size: 1.15rem;
  color: #e6e6e6;
}

.about-text p + p {
  margin-top: 16px;
}

/* Projects */
.projects-group {
  margin-top: 48px;
  scroll-margin-top: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.75);
  background: #000;
  transition: transform 0.25s, box-shadow 0.25s;
}

.project-link {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-media {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.project-body {
  padding: 18px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(68,15,124,0.65);
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Compact grid — smaller cards (graphic design) */
.projects-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
}

.projects-grid--compact .project-body {
  padding: 14px;
}

.projects-grid--compact h3 {
  font-size: 1.3rem;
}

/* CTA button */
.project-cta {
  margin-top: 16px;
}

.project-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #440f7c;
  background: none;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-transform: lowercase;
  cursor: inherit;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project-btn:hover {
  background: #440f7c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(68,15,124,0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .content {
    margin-left: 0;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
  }
}

/* Make <a> cards behave like your button cards */
.project-link--anchor {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

/* Skills list */
.dashed-list {
  list-style: none;
  max-width: 720px;
}

.dashed-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  font-size: 1.1rem;
  color: #e6e6e6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashed-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #ff0095;
  font-weight: 800;
}

/* Footer */
.site-footer {
  padding: 32px 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  text-transform: lowercase;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  max-width: min(900px, 100%);
  max-height: 100%;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 60px rgba(68, 15, 124, 0.65);
}

.lightbox figcaption {
  margin-top: 14px;
  font-family: "digibop", sans-serif;
  font-size: 1.2rem;
  text-transform: lowercase;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: inherit;
  transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  color: #ff0095;
  transform: scale(1.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Little CTA inside the card */
.card-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #440f7c;
  font-weight: 800;
  text-transform: lowercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project-card:hover .card-cta {
  background: #440f7c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(68,15,124,0.45);
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

