/* ===============================
   VOID // JAI — DARK MUSEUM THEME
   Logo fully at the top (no spacing)
   =============================== */

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; width: 100%;
  background: #000000; color: #BFBFBF;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.2px;
}

/* Background image only for the home page */
.home-background {
  background-image: url(""); /* change to your file */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional: parallax calm effect */
}

/* ---- Header (logo sits at absolute top) ---- */
header {
  position: relative;
  width: 100%;
  padding: 0;                           /* removes top spacing */
  margin: 0;
  border-bottom: 1px solid #2B2B2B;
}

/* ---- Logo centered at very top ---- */
.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12px;                    /* tiny breathing room */
  padding-bottom: 12px;
  z-index: 2;
  position: relative;
  transition: transform .35s, opacity .35s;
}

.logo {
  width: 128px;
  height: auto;
  display: block;
}

.logo-container:hover {
  transform: scale(1.04);
  opacity: .95;
}
.logo-container:hover .logo {
  transform: translateY(-2px);
  transition: transform .35s;
}

/* ---- Nav: flush-left under logo ---- */
nav {
  width: 100%;
  padding: 10px 0 12px 12px;            /* left alignment */
  position: relative;
  z-index: 3;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #BFBFBF;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: .9;
  transition: opacity .2s, transform .25s, letter-spacing .25s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: #BFBFBF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
  opacity: .45;
}

nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
  letter-spacing: 0.14em;
}
nav a:hover::after { transform: scaleX(1); }

nav a.active::after {
  transform: scaleX(1);
  opacity: .3;
}

/* ---- Main ---- */
main {
  display: flex;
  justify-content: center;
  padding: 60px 20px 80px;
  text-align: center;
}

.section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

h1 {
  font-size: 1.9rem; 
  text-transform: uppercase; 
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

/* ---- Home (Index) ---- */
.intro h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.intro p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #BFBFBF;
  text-align: center;
}

/* spacing between multiple paragraphs */
.intro p + p {
  margin-top: 18px;
}

/* ---- Gallery / Work ---- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.image-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #0E0E0E;
  border: 1px solid #1F1F1F;
  border-radius: 2px;
  transition: transform .4s ease, filter .35s ease, box-shadow .35s ease, opacity .35s ease;
}

.image-grid figcaption {
  margin-top: 14px;
  max-width: 90%;
}

.image-grid figcaption h2 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: #E0E0E0;
}

.image-grid figcaption p {
  font-size: 0.9rem;
  color: #9A9A9A;
  line-height: 1.4;
}

/* Hover isolation effect (desktop only) */
@media (hover:hover) {
  .image-grid:hover img { opacity: .6; filter: grayscale(12%); }
  .image-grid img:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.06);
    box-shadow: 0 6px 28px rgba(0,0,0,.35);
    z-index: 1;
  }
}

/* ---- About ---- */
.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: #BFBFBF;
  line-height: 1.7;
  font-size: 1rem;
}
.about-text p + p { margin-top: 12px; }

/* ---- Contact ---- */
.contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.contact-info p {
  margin-bottom: 14px;
  font-size: .98rem;
  color: #BFBFBF;
  line-height: 1.55;
}

.contact-info a {
  color: #BFBFBF;
  text-decoration: none;
  border-bottom: 1px solid rgba(191,191,191,0.25);
}
.contact-info a:hover { opacity: .7; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #BFBFBF;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3A3A3A;
  background: #0B0B0B;
  color: #E6E6E6;
  border-radius: 4px;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
  border-color: #BFBFBF;
  background: #111;
  box-shadow: 0 0 0 2px rgba(191,191,191,.08) inset;
}

.contact-form button {
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid #BFBFBF;
  background: #BFBFBF;
  color: #000;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.contact-form button:hover { opacity: .92; transform: translateY(-1px); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {

  .logo { width: 108px; }

  nav {
    position: static;
    padding-left: 10px;
    margin-top: 10px;
  }

  .image-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  h1 { font-size: 1.6rem; }
}

/* Touch devices */
@media (hover:none) {
  .image-grid:hover img { opacity: 1; filter: none; }
  nav a:hover { transform: none; }
}
