/* Import High Galactic Font */
@font-face {
  font-family: "High Galactic";
  src: url("HighGalactic.woff2") format("woff2"),
    url("HighGalactic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Ensures text is visible while the font loads */
}

/* Import Inter Font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Color Scheme */
  --primary: #4b0082; /* Dark Purple */
  --secondary: #ffd700; /* Gold */
  --accent: #9370db; /* Medium Purple */
  --light: #f5f5f5;
  --dark: #1a1a1a;
  --text: #333;
  --background: #f9f9f9;

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-secondary: "Helvetica Neue", Arial;
  --font-high-galactic: "High Galactic", "Arial", sans-serif; /* High Galactic Font with fallback */
  --font-size-base: clamp(1rem, 2vw, 1.2rem); /* Fluid font size */
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Borders */
  --border-radius: 8px;
  --border-width: 2px;

  /* Shadows */
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text);
  background-color: var(--background);
  /* This is CRITICAL for preventing background scroll */
  transition: overflow 0.3s ease; /* Smooth transition if overflow changes */
}

/* Ensure the body scroll is prevented when menu is open */
body.menu-open {
  overflow: hidden;
  /* Add fixed positioning and height to prevent scroll issue on iOS/some Android browsers */
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  loading: lazy; /* Lazy load images */
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(
    11,
    11,
    11,
    0.9
  ); /* Dark semi-transparent background */
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000; /* Ensure header is on top */
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); /* Frosted glass effect */
  animation: neon-glow 3s infinite alternate; /* Apply neon glow animation */
  will-change: box-shadow; /* Optimize for animations */
}

@keyframes pulsate {
  0% {
    text-shadow: 1px 1px 0 #ffb7c5, 2px 2px 0 #ffb7c5,
      0 0 4px rgba(255, 215, 0, 0.6);
  }
  50% {
    text-shadow: 1px 1px 0 #ffb7c5, 2px 2px 0 #ffb7c5,
      0 0 6px rgba(255, 215, 0, 0.8);
  }
  100% {
    text-shadow: 1px 1px 0 #ffb7c5, 2px 2px 0 #ffb7c5,
      0 0 4px rgba(255, 215, 0, 0.6);
  }
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  width: 140px;
  height: auto;
  margin-bottom: 5px;
}

.logo h1 {
  font-family: var(--font-high-galactic);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #ffc107;
  text-shadow: 1px 1px 0 #ffb7c5, 2px 2px 0 #ffb7c5,
    0 0 4px rgba(255, 215, 0, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulsate 2s infinite;
  transition: text-shadow 0.3s ease;
}

.logo:hover h1 {
  text-shadow: 1px 1px 0 #ffb7c5, 2px 2px 0 #ffb7c5,
    0 0 6px rgba(255, 215, 0, 0.8);
}

/* Optional: Neon Glow Animation */
@keyframes neon-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(75, 0, 130, 0.8), 0 0 20px rgba(75, 0, 130, 0.8),
      0 0 30px rgba(75, 0, 130, 0.8);
  }
  50% {
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.8), 0 0 40px rgba(75, 0, 130, 0.8),
      0 0 60px rgba(75, 0, 130, 0.8);
  }
}

/* Navigation Links (Desktop Default) */
.nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  color: var(--light);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); /* Neon gold glow on hover */
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  color: var(--light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); /* Neon gold glow on hover */
}

/* Mobile Menu Button (hidden by default on desktop) */
.mobile-menu-btn {
  display: none; /* Hidden on desktop by default */
  background: none;
  border: none;
  color: var(--light);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001; /* Ensure button is above header content if needed */
}

/* --- Mobile Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .header {
    flex-direction: row; /* Keep header items in a row on mobile for better layout control */
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md); /* Adjust padding */
    flex-wrap: nowrap; /* Prevent wrapping on smaller screens for header elements */
  }

  .logo {
    flex-direction: row; /* Keep logo and text inline on mobile header */
    gap: 10px; /* Space between logo and text */
  }

  .logo img {
    width: 60px; /* Adjust logo size for mobile */
    height: 60px;
    margin-bottom: 0;
  }

  .logo h1 {
    font-size: clamp(
      1rem,
      4vw,
      1.2rem
    ); /* Smaller font size for mobile header */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 75%; /* Width of the mobile menu */
    max-width: 300px; /* Max width for larger tablets in portrait */
    height: 100vh; /* Full viewport height */
    background-color: var(--dark); /* Dark background for the menu */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg); /* Larger gap for mobile links */
    box-shadow: var(--shadow-lg);
    transition: left 0.4s ease-in-out; /* Smooth slide in/out */
    z-index: 999; /* Below header, above main content */
    padding-top: var(--spacing-xl); /* Push content down from top */
    padding-bottom: var(--spacing-xl);
  }

  .nav-links.active {
    left: 0; /* Slide in */
  }

  .nav-links a {
    font-size: 1.4rem; /* Larger font for mobile menu links */
    padding: var(--spacing-sm); /* Add padding for touch targets */
    display: block; /* Make links block level */
    width: 100%; /* Full width for links */
    text-align: center;
  }

  .nav-links a::after {
    /* Hide underline on mobile menu for cleaner look if desired */
    display: none;
  }

  .nav-links a:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-btn {
    display: block; /* Show hamburger on mobile */
  }

  .social-links {
    display: none; /* Hide social links on mobile header, can be moved inside nav-links if desired */
  }

  /* CRITICAL: Hide hero content when mobile menu is open */
  body.menu-open .home .hero-slider {
    /* Set opacity to 0 and pointer-events to none for the hero slider */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out; /* Smooth fade out */
  }

  body.menu-open .home .cta-buttons {
    /* Hide CTA buttons explicitly */
    display: none;
  }
}

/* --- Desktop Styles (min-width: 769px) --- */
@media (min-width: 769px) {
  .header {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo {
    flex-grow: 0;
    text-align: left;
    padding-left: 0;
    flex-direction: column; /* Revert to column for desktop */
    gap: 0;
  }

  .logo img {
    width: 140px; /* Revert to desktop size */
    height: auto;
    margin-bottom: 5px;
  }

  .logo h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem); /* Revert to desktop size */
  }

  .nav-links {
    position: static;
    transform: translateY(0);
    flex-direction: row;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    width: auto;
    gap: var(--spacing-md);
    display: flex;
    order: initial;
    height: auto; /* Revert height for desktop */
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0;
    display: inline-block;
  }

  .nav-links a::after {
    display: block;
  }

  .nav-links a:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  }

  .mobile-menu-btn {
    display: none;
  }

  .social-links {
    display: flex;
    order: initial;
  }
}

/* Hero Section */
.home {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slideshow Animation (Your existing animation is good) */
@keyframes slideshow {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-slide:nth-child(1) {
  animation: slideshow 20s infinite;
}

.hero-slide:nth-child(2) {
  animation: slideshow 20s infinite 10s;
}

.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light);
  background: rgba(0, 0, 0, 0.5);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
}

.slide-caption h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

.slide-caption p {
  font-size: clamp(1rem, 3vw, 1.5rem);
}

.cta-buttons {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-md);
  z-index: 10; /* Ensure buttons are above slides but below menu */
}

/* Portfolio Section */
.portfolio {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--background);
  max-width: 1400px;
  margin: 0 auto;
}

/* Headings and Intros */
.portfolio h1,
.portfolio h2 {
  font-family: var(--font-high-galactic);
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
}

.portfolio-category h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-top: var(--spacing-lg);
}

.section-intro,
.category-intro {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
  line-height: var(--line-height-base);
}

.masonry-grid {
  display: flex;
  gap: var(--spacing-md);
  width: 100%;
  align-items: flex-start;
}

.masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--light);
  box-shadow: var(--shadow-sm);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item img {
  width: 100%;
  min-height: 250px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay p {
  font-size: 1rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding: 0 var(--spacing-xs);
}

/* Responsive Adjustments (Portfolio Section) */
@media (max-width: 1024px) {
  .masonry-grid {
    flex-direction: column;
  }

  .masonry-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
  }

  .portfolio-item {
    flex: 1 1 calc(50% - var(--spacing-md) / 2);
    max-width: calc(50% - var(--spacing-md) / 2);
  }

  .portfolio-item img {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  /* This media query is duplicated, let's consolidate */
  .portfolio {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .masonry-grid {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .masonry-column {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
  }

  .portfolio-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .portfolio-item img {
    min-height: 180px;
  }

  .overlay h3 {
    font-size: 1.2rem;
  }

  .overlay p {
    font-size: 0.9rem;
  }
}

/* About Section */
.about {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background-color: var(--background);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-cta {
  text-align: center;
  margin: 3rem auto;
  max-width: 600px;
}

.contact-cta .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #4b0082;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  margin-top: 1rem;
  font-weight: 600;
}

.contact-cta .btn:hover {
  background-color: #ffd700;
}

/* About Section Headshot */
.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

/* Services Section */
.services {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.service-item {
  background: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-10px);
}

/* Shop Section */
.shop {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.product-item {
  background: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.product-item img {
  border-radius: var(--border-radius);
}

/* Contact Section */
.contact {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact input,
.contact textarea {
  padding: var(--spacing-xs);
  border: var(--border-width) solid var(--primary);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact button {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.contact button:hover {
  background: var(--secondary);
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--light);
  text-align: center;
  padding: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* General responsive font size adjustments (if needed) */
@media (max-width: 480px) {
  .masonry-grid {
    margin-left: 0; /* No negative margin */
  }

  .masonry-column {
    padding-left: 0; /* No padding */
  }

  .portfolio-item {
    margin-bottom: var(--spacing-xs);
  }

  /* Adjust font sizes for smaller screens if clamp isn't enough */
  .slide-caption h2 {
    font-size: 1.8rem;
  }

  .slide-caption p {
    font-size: 1rem;
  }
}
.book-entrance-container {
  text-align: center;
  padding: 80px 0;
  background: transparent; /* Or match your section color */
}

.pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  text-decoration: none;
  display: inline-block;
}

.shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(340deg 100% 16%) 0%,
    hsl(340deg 100% 32%) 8%,
    hsl(340deg 100% 32%) 92%,
    hsl(340deg 100% 16%) 100%
  );
}

.front {
  display: block;
  position: relative;
  padding: 12px 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  color: white;
  background: hsl(345deg 100% 47%); /* Adjust this to match your brand color */
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  font-family: "Inter", sans-serif; /* Use your site's font */
  font-weight: bold;
}

.pushable:hover {
  filter: brightness(110%);
}

.pushable:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.pushable:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.pushable:focus:not(:focus-visible) {
  outline: none;
}

.click-trigger {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}
