/* ==========================================================================
   1. STRICT RESET & SCROLL LOCK
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Paint the absolute back wall of the browser dark */
html {
  background-color: #0b0c0e;
  scrollbar-gutter: stable;
}

html, body {
  width: 100%;
  min-height: 100vh; 
  display: flex;
  flex-direction: column; 
  overflow-x: hidden; 
  
  /* 1. DELETE OR COMMENT OUT THIS LINE: */
  /* background-color: #0b0c0e; */
  
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  
}

/* 2. Hide scrollbar for Chrome, Safari, and Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

/* --- LAYER 1: The Grayscale Image --- */
body::before {
  content: "";
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  /* 1. Point this to your M logo image */
  background-image: url('images/m_logo_trans.png');
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
  background-position: 100% 50%;
  
  /* 2. Strip the color */
  filter: grayscale(100%); 
  opacity: 0.3; 
  z-index: -2; 
}

/* --- LAYER 2: The Edge Fade Effect --- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  /* 1. Center is now '0' (completely invisible).
     2. Edge is now '0.6' (only reaches 60% darkness).
     3. Pushed the edge out to '100%' so it doesn't creep in as far. */
  background: radial-gradient(circle, rgba(11, 12, 14, 0) 20%, rgba(11, 12, 14, 0.6) 100%);
  
  z-index: -1; 
  pointer-events: none; 
}

/* The rest of your CSS for 'main', 'header', 'nav', etc. continues down here... */
main {
  flex: 1;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
  width: 100%;
  height: 5.5rem; /* Hard-locks the vertical height */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%; /* Changed from 1.5rem to 0 for vertical padding */
  background-color: #0b0c0e;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0; 
}

/* Update your logo to strip out hidden anchor height */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem; 
  font-size: 1.25rem;
  letter-spacing: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1; /* Strips out any hidden default height */
  text-decoration: none;
}

/* 3. NEW: Controls the size of the small image */
.logo-icon {
  height: 2.5rem; /* Adjust this to make the icon bigger or smaller */
  width: auto; 
}

/* Desktop Links */ 
.desktop-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: nowrap; 
  white-space: nowrap; 
}

.desktop-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: #ffffff;
}

/* Hamburger Button (Hidden on Desktop) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   3. MAIN HERO SECTION
   ========================================================================== */
.hero {
  padding: 8rem 5% 5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  color: #6b7280;
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 300;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 0.9rem 2rem;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: #ffffff;
  color: #0b0c0e;
}

/* ==========================================================================
   4. SLIDE-OUT PANELS (RESPONSIVE)
   ========================================================================== */
.backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.backdrop.active {
  opacity: 1;
  visibility: visible;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px; /* On desktop, it's 400px wide. On mobile, it's 100%. */
  height: 100vh;
  background: #111318;
  border-left: 1px solid #1f2937;
  z-index: 201;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  
  /* Pushed off-screen cleanly */
  transform: translateX(100%); 
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel.active {
  transform: translateX(0); /* Slides in */
}

.close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 2rem;
  cursor: pointer;
  float: right;
  line-height: 1;
}

.panel-content {
  clear: both;
  padding-top: 1rem;
}

/* Mobile Menu Links inside Panel */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

/* Contact Form inside Panel */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: #9ca3af;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: #0b0c0e;
  border: 1px solid #1f2937;
  color: #ffffff;
  font-family: inherit;
}

/* --- LAYER 1: The Grayscale Image (Only on Shop Page) --- */
.coming-soon-page::before {
  content: "";
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  /* Point this to the image you want for the coming soon page */
  background-image: url('images/coming_soon.png'); 
  background-size: 50%;
  background-position: 50% 5%;
  background-repeat: no-repeat;
  
  /* Strip the color to make it black and white */
  filter: grayscale(100%);
  
  /* The dimmer switch: adjust this between 0.1 and 0.3 for the perfect fade */
  opacity: 0.15;
  
  z-index: -2;
}


/* --- LAYER 2: The Dark Edge Fade (Only on Shop Page) --- */
.coming-soon-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  /* Fades the faint image into your dark background color at the edges */
  background: radial-gradient(circle, rgba(11, 12, 14, 0.4) 20%, rgba(11, 12, 14, 1) 90%);
  
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   5. MOBILE ADJUSTMENTS (PHONES & TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  /* Swap Header Setup */
  .desktop-nav { display: none; }
  .hamburger-btn { display: block; }
  
  
  /* Shrink Hero Elements */
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-title { font-size: 1.8rem; }
  
  /* Stack Buttons */
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .btn { width: 100%; }

  /* Panels take up the full screen natively */
  .side-panel {
    max-width: 100%;
  }

  body::before {
    background-size: 200%;       /* Makes the image detail larger on narrow screens */
    background-position: 65% -10%; /* Fine-tunes horizontal (85%) & vertical (30%) focal point */
  }
  .coming-soon-page::before { background-size: 90%; }

/* ==========================================================================
   ISOLATED GALLERY CAROUSEL (Safely scoped to prevent layout breaks)
   ========================================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  
  /* Remove the fixed heights and replace with a strict ratio */
  aspect-ratio: 3 / 4; 
  
  background: #161922;
  border: 1px solid #374151;
  overflow: hidden; 
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}


/* Aesthetic Glassmorphism Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 12, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0; /* Hidden by default */
}

.carousel-wrapper:hover .carousel-btn {
  opacity: 1; /* Shows only when hovering over the specific card on desktop */
}

.carousel-btn:hover {
  background: rgba(11, 12, 14, 0.9);
  border-color: #ffffff;
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prev-btn { left: 0.75rem; }
.next-btn { right: 0.75rem; }

@media (hover: none) and (pointer: coarse) {
  .carousel-btn { 
    display: flex; 
    opacity: 0.7; 
  }
}



  
}