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

/* CSS Variables for Premium Design System */
:root {
  --bg-color: #050505;
  --surface-color: #121212;
  --surface-hover: #1e1e1e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-gold: #d4af37;
  --accent-gold-hover: #f3d060;
  --accent-gold-muted: rgba(212, 175, 55, 0.15);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(18, 18, 18, 0.75);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-logo span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 0.5rem;
  font-family: var(--font-body);
}

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

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Page Containers */
main {
  padding-top: 5.5rem; /* Allow space for fixed header */
  min-height: calc(100vh - 8rem);
}

/* Mobile Header Layout (Stacking logo & links to avoid overflow/truncation) */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    align-items: center;
  }

  .nav-links {
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
  }

  main {
    padding-top: 7.5rem; /* Extra space to accommodate double-row header */
  }

  .about-container,
  .contact-container {
    padding-top: 9.5rem; /* Stacked mobile header 7.5rem offset + 2rem spacing */
  }
}

/* Hero Section (Index/Home) */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Common Section Headers */
.section-header {
  max-width: 1400px;
  margin: 4rem auto 2rem auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
}

.section-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-link:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

/* Portfolio Grid */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

/* Portfolio Filters */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 1.8rem;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--bg-color);
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Gallery Grid System */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.photo-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-subtle);
}

.photo-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 Aspect Ratio */
  overflow: hidden;
  background-color: #0b0b0b;
}

.photo-card img,
.photo-wrapper .lazy-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  user-select: none;
  -webkit-user-drag: none;
}

.photo-card:hover img {
  transform: scale(1.03);
}

.card-caption {
  padding: 1.25rem;
}

.card-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.card-caption p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Copy Protection Utilities */
img, .photo-wrapper, .lightbox-image {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

/* About Page Specific Styles */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 7.5rem 2rem 6rem 2rem; /* Add 5.5rem desktop header offset + 2rem spacing */
}

.about-container .hero-section {
  height: auto;
  min-height: auto;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 0;
  margin-bottom: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .about-container .hero-section {
    flex-direction: row;
    align-items: center;
  }
}

.hero-image-wrapper {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-subtle);
}

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

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--accent-gold);
}

.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-gold);
  padding-left: 1rem;
}

.content-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.ethics-list {
  list-style: none;
}

.ethics-list li {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.ethics-list li::before {
  content: "•";
  color: var(--accent-gold);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.15rem;
}

.gear-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .gear-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gear-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.gear-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.gear-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact Page Specific Styles */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7.5rem 2rem 6rem 2rem; /* Add 5.5rem desktop header offset + 2rem spacing */
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.inquiry-form-wrapper {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.04);
}

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

.btn-submit {
  width: 100%;
  background-color: var(--accent-gold);
  color: var(--bg-color);
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-submit:hover {
  background-color: var(--accent-gold-hover);
}

.print-info-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-gold);
  padding-left: 1rem;
}

.print-info-panel p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.print-detail-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.print-detail-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.print-sizes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.size-item {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Native Modal Lightbox Styling */
dialog#lightbox-modal {
  border: none;
  outline: none;
  background: none;
  color: var(--text-primary);
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Backdrop Blur (Supported in Modern Browsers) */
dialog#lightbox-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-layout {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  max-height: 90vh;
  width: 100%;
}

@media (min-width: 900px) {
  .lightbox-layout {
    grid-template-columns: 1.8fr 1fr;
    height: 80vh;
  }
}

.lightbox-preview {
  background-color: #030303;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 350px;
}

@media (min-width: 900px) {
  .lightbox-preview {
    min-height: 0;
    height: 100%;
  }
}

/* Copy Protection: Background Image Div */
.lightbox-image-container {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none; /* Prevents right click, drag, select */
}

/* Modern close button */
.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.lightbox-close-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
  transform: scale(1.05);
}

/* Details Panel (Right/Bottom) */
.lightbox-details {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 900px) {
  .lightbox-details {
    border-top: none;
    border-left: 1px solid var(--border-color);
    height: 100%;
  }
}

.detail-header {
  margin-bottom: 2rem;
}

.detail-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.detail-location {
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exif-block {
  margin-bottom: 2.5rem;
}

.exif-block h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.exif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.exif-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.5rem;
}

.exif-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.exif-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.lightbox-action-btn {
  background-color: var(--accent-gold);
  color: var(--bg-color);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  transition: var(--transition-smooth);
}

.lightbox-action-btn:hover {
  background-color: var(--accent-gold-hover);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Footer Section */
.site-footer {
  background-color: #020202;
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--accent-gold);
}

.site-footer a:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

/* Micro animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Status Notice Banner (Contact Page) */
.status-notice {
  background-color: rgba(251, 191, 36, 0.1); /* Standout Amber/Yellow transparent background */
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #fbbf24; /* Standout Yellow text color */
  font-size: 1.1rem; /* Larger font size */
  font-weight: 500;
  line-height: 1.5;
}

.status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
