/* DreamWalker Gallery - Hero Layout with Dark Theme */
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color-scheme: dark;
}

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

body.gallery-container {
  background: #0a0a0a;
  min-height: 100vh;
  color: #fff;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.nav-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #007acc;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background-image: url('/assets/img/art-science-love-garden.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: opacity 0.1s ease-out;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
}

/* Gallery Main */
.gallery-main {
  padding: 0;
  background: #0a0a0a;
}

/* Gallery Section */
.gallery-section {
  background: #0a0a0a;
  padding: 4rem 0;
}

.gallery-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.gallery-intro h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.gallery-intro p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.gallery-item {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.9;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #333;
}

.gallery-item:hover .caption {
  background: #007acc;
  color: #fff;
}

/* Gallery detail page styles */
.gallery-detail-container {
  padding-top: 6rem;
  min-height: 100vh;
  background: #0a0a0a;
}

.gallery-detail {
  background: #111;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 1000px;
  margin: 2rem auto;
  color: #fff;
}

.gallery-detail h2 {
  margin: 0;
  padding: 2rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 2rem;
  text-align: center;
}

.gallery-detail-image {
  text-align: center;
  background: #000;
}

.gallery-detail-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gallery-detail-description {
  padding: 2rem;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.8;
}

.gallery-nav {
  padding: 2rem;
  text-align: center;
  background: #1a1a1a;
}

.back-link {
  display: inline-block;
  color: #007acc;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #007acc;
  transition: all 0.3s;
}

.back-link:hover {
  background: #007acc;
  color: #fff;
}

/* Footer */
.gallery-footer {
  background: #000;
  color: #666;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
    margin: 2rem auto;
  }
  
  .page-content {
    margin-top: 5rem;
    padding: 1rem;
  }
}

/* Page Content Styles */
.page-content {
  max-width: 800px;
  margin: 6rem auto 3rem;
  padding: 2rem;
  color: #fff;
  line-height: 1.6;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #007acc;
  margin-bottom: 2rem;
}

.content-section {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

.content-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.contact-placeholder ul {
  list-style-type: none;
  padding-left: 0;
}

.contact-placeholder li {
  padding: 0.5rem 0;
  color: #aaa;
  position: relative;
  padding-left: 1.5rem;
}

.contact-placeholder li::before {
  content: "•";
  color: #007acc;
  position: absolute;
  left: 0;
}

.back-to-gallery {
  text-align: center;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background: #007acc;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #007acc;
}

.cta-button:hover {
  background: transparent;
  color: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 122, 204, 0.3);
}
