/* ==========================================================================
   ELLIS AUSTIN — PORTFOLIO
   Components: Navbar, Buttery Magnetic Buttons, Cards, Full Photo Lightbox
   Minimalist Monochrome / Grey Palette
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
}

.site-header.fixed-nav {
  position: fixed;
  background-color: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-buttery), opacity 0.3s var(--ease-buttery);
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background-color: var(--accent-pure-white);
  transition: width 0.3s var(--ease-buttery);
  opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-pure-white);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Buttery Smooth Buttons
   -------------------------------------------------------------------------- */
.btn-magnetic-wrap {
  display: inline-block;
  position: relative;
  will-change: transform;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-buttery);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: #18181b;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  background: #202024;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-titanium);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-linkedin {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-titanium);
  border-color: rgba(255, 255, 255, 0.09);
}

.btn-linkedin:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-buttery);
}

.btn:hover .btn-icon-arrow {
  transform: translateX(4px);
}

.btn:hover .btn-icon-ext {
  transform: translate(2px, -2px);
}

.btn:hover .btn-icon-down {
  transform: translateY(3px);
}

.btn-active-click {
  transform: scale(0.96) !important;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Projects Layout — Portrait Photos & Multi-Photo Gallery
   -------------------------------------------------------------------------- */
.project-item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  position: relative;
  transition: border-color 0.4s var(--ease-buttery), box-shadow 0.4s var(--ease-buttery);
}

.project-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.project-item.reverse {
  grid-template-columns: 1fr 360px;
}

.project-item.reverse .project-gallery-wrap {
  order: 2;
}

.project-item.reverse .project-details {
  order: 1;
}

/* Photo Gallery Container */
.project-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
  width: 100%;
}

/* Main Display Photo Viewport (Portrait Orientation) */
.project-media-main {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d10;
  border: 1px solid var(--border-subtle);
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-buttery);
}

.project-media-main:hover .project-img-main {
  transform: scale(1.03);
}

/* Multiple Photos Thumbnail Strip (Portrait) */
.project-thumbs-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-thumb {
  width: 52px;
  height: 68px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: #0d0d10;
  opacity: 0.55;
  transition: all 0.25s var(--ease-buttery);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb:hover,
.project-thumb.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.project-thumb.active {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Project Details Column — Only Main Title & Description */
.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
  line-height: 1.25;
  color: #ffffff;
}

.project-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-titanium);
  margin-top: -0.65rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.project-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Full-Screen Lightbox Zoom Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-buttery), visibility 0.35s ease;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.15);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease-buttery);
}

.lightbox-modal.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-buttery);
  z-index: 1010;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Clean Single-Column Written-Out Resume Layout
   -------------------------------------------------------------------------- */
.resume-doc-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.resume-contact-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-contact-bar a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.resume-contact-bar a:hover {
  color: #ffffff;
}

.resume-block {
  margin-bottom: 3.25rem;
}

.resume-block-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-titanium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-summary-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.resume-entry {
  margin-bottom: 2rem;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.resume-entry-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
}

.resume-entry-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.resume-entry-sub {
  font-size: 0.925rem;
  color: var(--accent-titanium);
  margin-bottom: 0.6rem;
}

.resume-bullets {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.resume-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.935rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.resume-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.resume-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.resume-skill-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-silver);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.resume-skill-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 992px) {
  .project-item,
  .project-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .project-item.reverse .project-gallery-wrap {
    order: 0;
  }
  .project-item.reverse .project-details {
    order: 1;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    gap: 1.25rem;
  }
  .hero-btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .resume-contact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
