/* ============================================
   Pipes Dreams — Pure CSS
   HR Giger-inspired dark aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #C0C0C0;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-y: auto;
  min-height: 100vh;
}

a { color: #C0C0C0; text-decoration: none; transition: color 0.3s; }
a:hover { color: #E8E8E8; }

img { display: block; max-width: 100%; height: auto; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #4A4A4A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6A6A6A; }

/* ---- Metallic Heading ---- */
.metallic {
  font-family: 'UnifrakturCook', cursive;
  background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 40%, #8B8B8B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 200px;
  height: 100vh;
  background: #000;
  border-right: 1px solid #4A4A4A;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  padding: 24px 16px;
}

.sidebar-logo {
  width: 100%;
  margin-bottom: 32px;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.sidebar-logo:hover { opacity: 1; }

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.sidebar nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8B8B8B;
  border-left: 2px solid transparent;
  transition: all 0.3s;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  color: #E8E8E8;
  border-left-color: #C0C0C0;
  background: rgba(75,75,75,0.15);
}

.sidebar-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}
.sidebar-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #4A4A4A;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.sidebar-thumbs img:hover { opacity: 1; }

/* ---- Mobile Top Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #000;
  border-bottom: 1px solid #4A4A4A;
  z-index: 100;
  align-items: center;
  padding: 0 16px;
}

.mobile-nav .mob-logo {
  height: 40px;
  width: auto;
}

.mobile-nav .hamburger {
  background: none;
  border: none;
  color: #C0C0C0;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8B8B8B;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: #E8E8E8; }

/* ---- Main Content ---- */
.main-content {
  margin-left: 200px;
  min-height: 100vh;
}

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 60px 24px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8B8B8B;
  margin-bottom: 8px;
}

.hero .location {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #4A4A4A;
  margin-bottom: 48px;
}

.scroll-arrow {
  font-size: 28px;
  color: #4A4A4A;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ---- Section ---- */
.section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 48px;
}

/* ---- Featured Grid ---- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #4A4A4A;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s, filter 0.5s;
}

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  transform: translateY(100%);
  transition: transform 0.4s;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.overlay .item-title {
  font-size: 14px;
  font-weight: 500;
  color: #E8E8E8;
}

.overlay .item-cat {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8B8B8B;
}

/* ---- Bio Strip ---- */
.bio-strip {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  font-size: 15px;
  color: #8B8B8B;
  line-height: 1.8;
}

/* ---- Full Width Image ---- */
.full-width-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-top: 1px solid #4A4A4A;
  border-bottom: 1px solid #4A4A4A;
}

/* ---- Gallery Page ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #4A4A4A;
  color: #8B8B8B;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: #C0C0C0;
  color: #E8E8E8;
  background: rgba(75,75,75,0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.gallery-grid .gallery-item {
  aspect-ratio: auto;
}

.gallery-grid .gallery-item img {
  height: auto;
  aspect-ratio: auto;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #C0C0C0;
  font-size: 32px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #C0C0C0;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  padding: 16px;
  transition: color 0.3s;
}
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid #4A4A4A;
}

.lightbox-info {
  text-align: center;
  margin-top: 16px;
}
.lightbox-info .lb-title {
  font-size: 16px;
  font-weight: 500;
  color: #E8E8E8;
}
.lightbox-info .lb-cat {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8B8B8B;
  margin-top: 4px;
}

/* ---- About Page ---- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.about-photo {
  width: 100%;
  border: 1px solid #4A4A4A;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.about-text p {
  color: #8B8B8B;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  text-align: center;
}

.info-item {
  padding: 32px 16px;
  border: 1px solid #4A4A4A;
}

.info-item .label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4A4A4A;
  margin-bottom: 8px;
}

.info-item .value {
  font-size: 15px;
  color: #E8E8E8;
}

.work-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.work-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #4A4A4A;
  transition: opacity 0.3s;
}
.work-row img:hover { opacity: 0.8; }

/* ---- Contact Page ---- */
.contact-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-bottom: 1px solid #4A4A4A;
  margin-bottom: 64px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8B8B8B;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid #4A4A4A;
  color: #E8E8E8;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #C0C0C0;
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form button {
  background: transparent;
  border: 1px solid #C0C0C0;
  color: #E8E8E8;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}
.contact-form button:hover {
  background: #C0C0C0;
  color: #000;
}

.contact-info h3 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8E8E8;
  margin-bottom: 16px;
}

.contact-info p {
  color: #8B8B8B;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid #4A4A4A;
  padding: 32px 48px;
  text-align: center;
  font-size: 12px;
  color: #4A4A4A;
  letter-spacing: 1px;
}

/* ---- Fade In ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .main-content { margin-left: 0; padding-top: 60px; }

  .hero { min-height: calc(100vh - 60px); padding: 40px 20px; }
  .section { padding: 48px 20px; }

  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  .lightbox-img { max-width: 95vw; }
  .lightbox-prev { left: 4px; font-size: 28px; }
  .lightbox-next { right: 4px; font-size: 28px; }
}

@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 1fr 1fr; }
}
