/* === Variables for layout === */
:root {
  --navH-desktop: 120px;
  --navH-mobile: 140px;
}

/* === Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background: #fefefe; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Navbar (centered logo + centered links) === */
nav {
  position: fixed; top: 0; width: 100%;
  background: rgba(254,254,254,0.95); backdrop-filter: blur(10px);
  z-index: 1000; padding: 28px 0; border-bottom: 1px solid #eee;
}
.nav-container {
  display: flex; flex-direction: column; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  gap: 10px; position: relative;
}

/* logo text (restored) */
.logo { font-size: 24px; font-weight: 300; letter-spacing: 2px; text-align: center; }

/* make the logo link look identical to plain text (no size/colour change) */
.logo a {
  all: inherit;          /* inherit ALL styles from .logo (font-size, weight, spacing) */
  text-decoration: none; /* no underline */
  color: inherit;        /* no blue/purple */
  cursor: pointer;       /* hand cursor on hover */
}

/* nav links */
.nav-links {
  display: flex; list-style: none; gap: 28px; justify-content: center;
}
.nav-links a {
  text-decoration: none; color: #333; font-weight: 300; letter-spacing: 1px;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: #666; }

/* === Hamburger (mobile) === */
.nav-toggle {
  display: none;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; padding: 6px; cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 26px; height: 2px; background: #333;
  transition: transform .22s ease, opacity .18s ease; transform-origin: 7px 1px;
}
.nav-toggle .bar + .bar { margin-top: 6px; }
.nav-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Global spacing below navbar === */
main { padding-top: calc(var(--navH-desktop) + 60px); }
@media (max-width: 768px){
  main { padding-top: calc(var(--navH-mobile) + 60px); }
}

/* === Hero (unchanged text styles) === */
.hero { text-align: center; margin-bottom: 60px; }
.hero h1 { font-size: 48px; font-weight: 200; margin-bottom: 20px; letter-spacing: 3px; }
.hero p { font-size: 18px; color: #666; font-weight: 300; }

/* === Home (single column artworks) === */
.home-layout { display: block; }

.featured-gallery {
  display: flex; flex-direction: column; align-items: center;
  gap: 40px; margin: 0 auto;
}
.artwork-item {
  position: relative; overflow: hidden;
  border-radius: 0; box-shadow: none; transition: none; background: #fff;
  width: 100%; max-width: 1000px;
}
.artwork-item img {
  width: 100%; height: 60vh; max-height: 900px;
  object-fit: cover; display: block; border-radius: 0;
}
.artwork-info { padding: 20px; background: #fff; }
.artwork-info h3 { font-size: 22px; font-weight: 400; margin-bottom: 8px; color: #333; }
.artwork-info p { color: #666; font-size: 15px; line-height: 1.6; }

/* Home: center both title and description */
body[data-page="home"] .featured-gallery .artwork-info {
  text-align: center;
}

/* === Work grid === */
.work-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}
.work-gallery .artwork-item {
  border-radius: 0; box-shadow: none; transition: none; background: #fff;
}
.work-gallery .artwork-item img {
  width: 100%; height: 250px; object-fit: cover; border-radius: 0;
}
.work-gallery .artwork-info { padding: 15px; background: #fff; }
.work-gallery .artwork-info h3 { font-size: 18px; }

/* Work: hide only the descriptions in the grid (keep titles) */
body[data-page="work"] .work-gallery .artwork-info > p {
  display: none;
}

/* === Lightbox (fullscreen on Work) === */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; z-index: 2000;
}
.lightbox.open { display: flex; }
.lightbox-content {
  position: relative; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column;
}
.lightbox-img {
  max-width: 92vw; max-height: 70vh;
  object-fit: contain; background: #fff;
  border: 0; border-radius: 0;
}
.lightbox-caption {
  color: #f5f5f5; margin-top: 14px; line-height: 1.5;
}
.lightbox-caption h3 { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.lightbox-caption p { font-size: 14px; color: #ddd; }
.lightbox-close {
  position: absolute; top: -10px; right: -10px;
  width: 40px; height: 40px; border: 0; border-radius: 20px;
  cursor: pointer; background: rgba(255,255,255,0.95);
  display: grid; place-items: center; font-size: 20px;
}
/* cursor hint */
.work-gallery .artwork-item,
.work-gallery .artwork-item img { cursor: zoom-in; }

/* === Home socials === */
.home-socials {
  display: flex; justify-content: center;
  margin-top: 60px; margin-bottom: 48px;
}
.home-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #ddd; background: #fff; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-socials a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

/* === CV logos === */
.cv-logos {
  display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  margin: 0 auto 24px; justify-content:center;
}
.cv-logos img { height: 36px; width:auto; display:block; }

/* === Footer === */
footer {
  text-align: center; padding: 80px 20px 44px;
  color: #666; font-size: 14px;
}

/* === Mobile (≤768px) === */
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }

  .nav-links {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    margin: 0; padding: 12px 16px;
    background: rgba(254,254,254,0.98); backdrop-filter: blur(10px);
    border: 1px solid #eee; border-left: 0; border-right: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: none; flex-direction: column; gap: 0;
    transform-origin: top; transform: scaleY(0); opacity: 0;
    transition: transform .2s ease, opacity .2s ease; z-index: 1001;
  }
  .nav-links.open { display: flex; transform: scaleY(1); opacity: 1; }

  .nav-links li { list-style: none; }

  /* === Centered mobile menu items === */
  .nav-links a {
    font-size: 16px;
    display: block;
    padding: 12px 0;            /* equal top/bottom */
    text-align: center;         /* centered text */
    border: none;               /* remove side borders */
  }
  .nav-links li + li a {
    border-top: 1px dashed #eee; /* subtle divider */
  }
  .nav-links a:hover {
    color: #111;
    background: rgba(0,0,0,0.02); /* gentle hover */
  }

  .hero h1 { font-size: 36px; }

  /* === Mobile fix: show FULL image on Home (no crop) === */
  .featured-gallery .artwork-item img {
    width: 100%;
    height: auto;  /* follow natural aspect ratio */
    max-height: calc(100vh - (var(--navH-mobile) + 120px)); /* fit below fixed nav */
    object-fit: contain;  /* no cropping; may add letterbox */
  }
}

/* === Desktop guard === */
@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
}

/* === Desktop cursor === */
@media (min-width: 769px) {
  body { cursor: url("assets/paintbrush-cursor.png") 2 26, auto; }
}

/* === Home: show full artwork on desktop (no crop) === */
@media (min-width: 769px) {
  body[data-page="home"] .featured-gallery .artwork-item img {
    width: 100%;
    height: auto;  /* remove fixed 60vh */
    max-height: calc(100vh - (var(--navH-desktop) + 120px)); /* fit under fixed nav */
    object-fit: contain; /* no cropping; letterboxing if aspect differs */
  }
}
