/* ── Illustration page ── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { cursor: none !important; }

html { font-size: 60%; overflow-x: hidden; }

body {
  background-color: #111111;
  color: #ffffff;
  cursor: none;
}

/* ── Custom cursor ── */
.cursor { pointer-events: none; }

.cursor__ball {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
}

.cursor__ball--big { mix-blend-mode: difference; }
.cursor__ball--big circle { fill: #BF2929; }
.cursor__ball--small { mix-blend-mode: difference; }
.cursor__ball--small circle { fill: #f7f8fa; }

/* ── Header / nav ── */
.header {
  display: flex;
  position: fixed;
  height: 100px;
  width: 100%;
  top: 0;
  left: 0;
  padding: 3.5rem 10%;
  /*background-color: #070707d5;*/
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-family: League Spartan;
  font-weight: Regular;
  background-color: #1a1a1aab;
}

#menu-icon {
  font-size: 3rem;
  color: tomato;
  display: none;
}
.logo{
  font-size: 3rem;
  color: rgb(255, 255, 255);
  font-family: libre baskerville;
  /* font-family: caveat; */
  transition: 0.3s ease-in-out;
}
.logo:hover{
  transform: scale(1.1);
}
.navbar {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 6rem;
  justify-content: center;
}
nav {
height: 100%;
display: flex;
}
.navbar > li > a {
  display: flex;
  align-items: center;     /* vertical centering */
  justify-content: center; /* horizontal centering */
  color: white;
  font-size: 1.8rem;
  margin-left: 0;
  height: 100%;
  text-align: center;
}
.dropdown-menu li a {
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: white;
  font-size: 1.8rem;
  margin-left: 0;
  height: 100%;
  display: block;
  width: 100%;
  text-align: right;
  font-size: 1.5rem;
}
.dropdown-menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;              
  width: 0%;             
  height: 100%;
  background: #a82a2ad3;
  z-index: -1;

  transition: width 0.3s ease;
}
.dropdown-menu li a:hover::before {
  width: 100%;           

}
.navbar li{
  position: relative;
  height: 100%;

}
.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu { /*verticaly center nav and dropdown */
  
  position: absolute;
  top: 100%;          /* directly under the li */
  right: -1rem;
  background: #2b2b2bd3;
  list-style: none;
  padding: 0;
  min-width: 220px;

  opacity: 0;
  left: auto;
  transform: translateY(-10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
  


  transition: opacity 0.3s ease, transform 0.3s ease;
}
.navbar li:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li a{
  width: 100%;
  text-align: right;
  font-size: 1.5rem;
}

/* ── Page banner header ── */
.illust-page-header {
  position: relative;
  width: 100%;
  height: 36vh;
  min-height: 220px;
  margin-top: 100px;
  overflow: hidden;
}

.illust-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.illust-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(17,17,17,0.92) 10%,
    rgba(17,17,17,0.45) 70%,
    rgba(17,17,17,0.15)
  );
}

.illust-header-text {
  position: absolute;
  left: 8%;
  bottom: 4rem;
  z-index: 2;
}

.illust-page-tag {
  font-family: League Spartan;
  font-size: 1.2rem;
  letter-spacing: 0.35rem;
  color: #BF2929;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.4rem;
}

.illust-page-title {
  font-family: Libre Baskerville;
  font-size: 7rem;
  font-weight: 400;
  font-style: italic;
  color: #f0e8d8;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.illust-page-rule {
  width: 5rem;
  height: 2px;
  background: #BF2929;
}

/* ── Masonry gallery ── */
.art-grid {
  padding: 4rem 8% 10rem;
  columns: 3;
  column-gap: 1.5rem;
}

.art-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.art-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.45s ease, transform 0.5s ease;
}

.art-item:hover img {
  filter: brightness(0.65);
  transform: scale(1.025);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.96);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

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

@keyframes lb-exit-left {
  from { transform: translateX(0);      opacity: 1; }
  to   { transform: translateX(-6vw);   opacity: 0; }
}
@keyframes lb-exit-right {
  from { transform: translateX(0);      opacity: 1; }
  to   { transform: translateX(6vw);    opacity: 0; }
}
@keyframes lb-enter-right {
  from { transform: translateX(6vw);    opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
@keyframes lb-enter-left {
  from { transform: translateX(-6vw);   opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}

.lightbox-img.exit-left  { animation: lb-exit-left  0.15s ease forwards; }
.lightbox-img.exit-right { animation: lb-exit-right 0.15s ease forwards; }
.lightbox-img.enter-right { animation: lb-enter-right 0.18s ease forwards; }
.lightbox-img.enter-left  { animation: lb-enter-left  0.18s ease forwards; }

.lightbox-close {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  transition: color 0.2s ease;
}
.lightbox-close:hover { color: #ffffff; }

.lightbox-counter {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: League Spartan;
  font-size: 1.3rem;
  letter-spacing: 0.25rem;
  color: rgba(255,255,255,0.35);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 180px;
  background: rgba(19,19,19,1);
  bottom: 0;
  left: 0;
  padding: 5rem 10%;
  margin-top: auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-self: center;
  /* margin-top: 2rem; */
  gap: 2rem;
}

.text {
  color: rgb(255, 255, 255);
  font-family: League Spartan;
  font-weight: Regular;
  font-size: 3.8rem;
  opacity: 1;
  z-index: 10;
}

.icon_links {
  display: flex;
  justify-content: space-between;
  width: 155px;
  height: 27px;
}
.contact {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.contact a{  
font-size: 1.8rem;
color: white;
margin-left: 4rem;
font-weight: 500;
font-family: League Spartan;
}
.artstation {
  z-index: 10;
}
.page-link {
    position: absolute;
    display: block;
    z-index: 1000; /* above page image */
    cursor: pointer;
    /* background: rgba(255, 0, 0, 0.3);
    outline: 2px solid red;  */
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .art-grid { columns: 2; }
  .illust-page-title { font-size: 6rem; }
}

@media (max-width: 768px) {
  .art-grid { columns: 1; padding: 3rem 5% 6rem; }
  .illust-page-header { padding: 13rem 5% 4rem; }
  .illust-page-title { font-size: 4.5rem; }
}
