/* --- 1. GLOBAL RESETS --- */
:root {
  --bg-color: #1a1a1a;
  --text-main: #ffffff;
  --accent: #d4af37;
  --beige-bg: rgba(232, 230, 217, 0.95); /* High opacity beige */
  --beige-text: #1a1a1a;
}

body {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  width: 100vw;
  background-color: var(--bg-color);
  margin: 0;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);

  /* CRITICAL FIXES FOR MOBILE STABILITY */
  touch-action: none;
  overscroll-behavior: none;

  /* Fade in animation setup */
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.loading {
  opacity: 0;
}

/* --- 2. FIXED UI LAYER --- */
.fixed-overlay {
  position: fixed;
  inset: 0; /* Top/Left/Right/Bottom: 0 */
  z-index: 100;
  pointer-events: none; /* Let clicks pass through empty areas */

  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally centers children */
}

/* ========================= */
/* 3. HEADER (Desktop Grid)  */
/* ========================= */
.site-header {
  pointer-events: auto;
  width: 100%;
  padding: 1.5rem 3rem;

  /* GRID: Creates 3 sections. 
     1fr (Left) - auto (Logo) - 1fr (Right) 
     This guarantees the logo is dead center. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; /* Vertically centers links with logo */

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

/* Navigation Groups */
.nav-part {
  display: flex;
  gap: 2rem;
  align-items: center; /* Ensures text is vertically centered */
}

/* CHANGED: Push Left Nav towards the center (Logo) */
.nav-part.left {
  justify-content: center;
}

/* CHANGED: Push Right Nav towards the center (Logo) */
.nav-part.right {
  justify-content: center;
}

/* Logo Wrapper */
.logo-part {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Added padding so links don't touch the logo */
  padding: 0 40px;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.05);
}

/* Links & Buttons */
.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  line-height: 1; /* Helps with vertical alignment */
}
.nav-link:hover {
  color: var(--accent);
}

.btn-highlight {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
}
.btn-highlight:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- 4. INTRO BOX --- */
.intro-box {
  pointer-events: auto;
  margin-top: 2rem; /* Spacing from header */

  background-color: var(--beige-bg);
  backdrop-filter: blur(5px);
  color: var(--beige-text);

  padding: 2.5rem 3rem;
  width: 90%;
  max-width: 600px;
  text-align: center;

  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.intro-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  margin: 0 0 15px 0;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.intro-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

/* --- 5. SLIDER LAYER --- */
#image-track {
  display: flex;
  gap: 4vmin;
  position: absolute;
  left: 50%;
  top: 60%; /* Positioned so images peek out below text */
  transform: translate(0%, -50%);
  user-select: none;
  z-index: 1;
  cursor: grab;
}

#image-track:active {
  cursor: grabbing;
}

#image-track > .image {
  width: 25vw;
  height: 35vw;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
  transition: 0.5s ease;
}

#image-track > .image:hover {
  transform: scale(1.02);
}

/* --- 6. FOOTER --- */
.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.socials {
  pointer-events: auto;
}

.socials a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.socials a:hover {
  color: var(--accent);
}

/* --- 7. RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 900px) {
  /* 1. Header Layout: Centered Row */
  .site-header {
    display: flex; /* Flex makes it a row */
    justify-content: center; /* CHANGED: Center content instead of space-between */
    align-items: center; /* Ensures they are on the same vertical level */
    padding: 1rem 1.5rem;
    gap: 20px; /* CHANGED: Add gap so Logo and Buttons aren't touching */
  }

  /* 2. Logo Adjustment */
  .logo-part {
    margin: 0;
    padding: 0;
    order: 0; /* Left side */
  }
  .logo-img {
    height: 40px; /* Smaller for mobile */
  }

  /* 3. Nav Handling */
  .nav-part.left {
    display: block; /* Hide Collections/Artists on mobile to save space */
  }

  .nav-part.right {
    display: flex;
    order: 1; /* Right side */
    gap: 12px;
    justify-content: center; /* Ensure buttons are centered in their container */
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .btn-highlight {
    padding: 6px 16px;
  }

  /* 4. Intro Box Adjustment */
  .intro-box {
    margin-top: 1rem;
    padding: 1.5rem;
    width: 85%;
  }
  .intro-title {
    font-size: 1.5rem;
  }
  .intro-text {
    font-size: 0.85rem;
  }

  /* 5. Slider Adjustments */
  #image-track {
    top: 65%;
    gap: 6vmin;
  }

  #image-track > .image {
    width: 65vmin;
    height: 90vmin;
  }

  .site-footer {
    padding: 1rem;
    justify-content: center;
    font-size: 0.75rem;
  }
}
