/* =============================================
   ASHLEY MEZA — Portfolio
   ============================================= */

@font-face {
  font-family: 'Ink';
  src: url('fonts/Jnkjnkj-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --paper: #f5f2ed;
  --ink:   #111111;
  --pink:   #e8305a;
  --teal:   #1db8b4;
  --orange: #f7631b;
  --green:  #7fb241;
  --yellow: #f5c842;
  --hero-bg: #0d0d0d;

  --font-hand:   'Ink', 'Caveat', cursive;
  --font-marker: 'Ink', 'Permanent Marker', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: url('images/arrow-cursor.png') 16 8, auto;
}

a { cursor: url('images/arrow-cursor.png') 16 8, pointer; }

img { display: block; max-width: 100%; }

/* =============================================
   NAV
   ============================================= */

.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.4rem 2.5rem;
  background: #87946A;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-logo {
  grid-column: 2;
}

.nav-links {
  grid-column: 3;
  justify-self: end;
}

.main-nav--light {
  background: #87946A;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.signature-logo { height: 44px; }
.signature-logo--dark { filter: invert(0); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--font-marker);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  margin-top: -4rem;
  max-height: 1490px;
  overflow: hidden;
}

/* Full illustration — no cropping */
.hero-bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Nav signature logo — object-fit crops the whitespace from the PNG */
.nav-sig {
  width: 360px;
  height: 90px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  mix-blend-mode: multiply;
}

/* "Contact Me" label — positioned over the sticky note/notepad in the illustration */
.contact-label {
  position: absolute;
  left: 8%;
  top: 82%;
  font-family: var(--font-marker);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-3deg);
  z-index: 3;
  transition: color 0.2s;
}

.contact-label:hover { color: var(--pink); }

/* Full-canvas overlay layers (same dimensions as desk.png — align at 0,0) */
.desk-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* ---- Illustrated element links ---- */

.element-link {
  position: absolute;
  display: block;
  cursor: crosshair;
  z-index: 3;
  transition: transform 0.2s;
}

.element-link img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.element-link:hover {
  transform: scale(1.06);
}

.element-label {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-marker);
  font-size: 0.8rem;
  color: white;
  background: var(--ink);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.element-link:hover .element-label { opacity: 1; }

/* Individual element positions */
#el-sketchbook {
  width: 28%;
  left: 1%;
  top: 63%;
}

#el-palette {
  width: 30%;
  left: 67%;
  top: 36%;
}

/* ---- Invisible click zones ---- */
.invisible-link {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: crosshair;
  z-index: 5;
  text-decoration: none;
}

.invisible-label {
  font-family: var(--font-marker);
  font-size: 0.85rem;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  pointer-events: none;
}

.invisible-link:hover .invisible-label {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hotspots ---- */

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: crosshair;
}

.hotspot-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  position: relative;
  transition: transform 0.2s;
  background: rgba(255,255,255,0.4);
}

.hotspot-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: hotspot-pulse 2.4s ease-in-out infinite;
}

.hotspot-ring::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: hotspot-pulse 2.4s ease-in-out infinite 0.5s;
}

@keyframes hotspot-pulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hotspot--pink   { color: var(--pink); }
.hotspot--teal   { color: var(--teal); }
.hotspot--orange { color: var(--orange); }

.hotspot:hover .hotspot-ring {
  transform: scale(1.2);
  background: currentColor;
}

.hotspot-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-marker);
  font-size: 0.8rem;
  color: white;
  background: var(--ink);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.hotspot:hover .hotspot-label { opacity: 1; }

.hero-hint {
  margin-top: 1.2rem;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: rgba(0,0,0,0.3);
  letter-spacing: 0.05em;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: rgba(0,0,0,0.25);
  animation: bounce 2.2s ease-in-out infinite;
  letter-spacing: 0.05em;
}

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

/* =============================================
   ABOUT
   ============================================= */

.about {
  padding: 4rem 2.5rem 7rem;
  max-width: 1080px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  align-items: start;
}

.polaroid {
  width: 100%;
  border: 14px solid white;
  border-bottom-width: 48px;
  box-shadow: 4px 6px 18px rgba(0,0,0,0.18);
  transform: rotate(-3deg);
}

.ig-tag {
  font-family: var(--font-hand);
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #888;
}

.section-title {
  font-family: var(--font-marker);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 1.2rem;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 6px;
}

.about-intro {
  font-family: var(--font-marker);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  color: #333;
}

.cta-btn {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--font-marker);
  font-size: 1.1rem;
  color: white;
  background: var(--ink);
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.03em;
}

.cta-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
}

/* =============================================
   WORK PREVIEW (homepage)
   ============================================= */

.preview-section {
  padding: 2rem 2.5rem 7rem;
  max-width: 1080px;
  margin: 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.preview-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.preview-item:hover img {
  transform: scale(1.05);
}

.preview-item.placeholder {
  background: #eae6df;
  border: 2px dashed #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-item.placeholder span {
  font-family: var(--font-hand);
  color: #aaa;
  font-size: 1rem;
}

.see-all {
  font-family: var(--font-marker);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--pink);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.see-all:hover { color: var(--pink); }

/* =============================================
   WORK PAGE
   ============================================= */

.page-header {
  padding: 9rem 2.5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-marker);
  font-size: 5.5rem;
  line-height: 1;
}

.filter-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-marker);
  font-size: 0.9rem;
  background: none;
  border: 2.5px solid var(--ink);
  padding: 0.4rem 1.3rem;
  cursor: crosshair;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: white;
}

.gallery {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}

.gallery-section {
  margin-bottom: 5rem;
}

.gallery-heading {
  font-family: var(--font-marker);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.gallery-heading-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.gallery-item::after {
  content: '⤢';
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  font-size: 1.2rem;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background 0.3s;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,0.45);
}

.gallery-item-title {
  font-family: var(--font-marker);
  font-size: 1rem;
  color: white;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-item-title {
  opacity: 1;
  transform: translateY(0);
}

.placeholder-item {
  background: #eae6df;
  border: 2px dashed #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-item span {
  font-family: var(--font-hand);
  color: #aaa;
  font-size: 1rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9rem 2.5rem 5rem;
}

.contact-header {
  margin-bottom: 4.5rem;
}

.contact-title {
  font-family: var(--font-marker);
  font-size: 4.5rem;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.contact-subtitle {
  font-size: 1.4rem;
  color: #666;
}

.contact-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-block {
  margin-bottom: 2.5rem;
}

.contact-info-block h3 {
  font-family: var(--font-marker);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.contact-info-block p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
}

.social-card {
  display: flex;
  flex-direction: column;
  border: 2.5px solid var(--ink);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  margin-top: 0.5rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-card:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

.social-card-name {
  font-family: var(--font-marker);
  font-size: 1.1rem;
}

.social-card-handle {
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Form */
.commission-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: var(--font-marker);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  padding: 0.75rem 1rem;
  border: 2.5px solid var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.submit-btn {
  font-family: var(--font-marker);
  font-size: 1.2rem;
  background: var(--ink);
  color: white;
  border: 3px solid var(--ink);
  padding: 1rem 2.2rem;
  cursor: crosshair;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-start;
  letter-spacing: 0.03em;
}

.submit-btn:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.form-success {
  padding: 4rem 0;
  text-align: center;
}

.success-msg {
  font-family: var(--font-marker);
  font-size: 2rem;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--ink);
  padding: 1.2rem 2.5rem;
  margin-top: 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-sig {
  height: 140px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-marker);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.footer-links a:hover { color: var(--pink); }

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 3rem;
  line-height: 1;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .main-nav { padding: 1rem 1.5rem; }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .polaroid { width: 200px; transform: rotate(-2deg); }

  .preview-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-title { font-size: 3.5rem; }
  .contact-title { font-size: 3rem; }

  .contact-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .preview-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-hint { display: none; }
}
