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

:root {
  /* UI UX Pro Max Colors */
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-cta: #2563EB;
  --color-background: #18181B;
  /* Using dark mode as per wireframe */
  --color-surface: #27272A;
  --color-text: #FAFAFA;
  --color-text-muted: #A1A1AA;
  --color-border: #3F3F46;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);

  /* Typography Variables */
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text-muted);
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-muted {
  color: var(--color-text-muted);
}

.hidden {
  display: none !important;
}

/* Responsive Utilities */
@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }

  .md\:hidden {
    display: none !important;
  }
}

/* Typography Classes */
.heading-mega {
  font-size: clamp(3rem, 6vw, 8rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #EF4444;
  /* UI UX Pro Max red accent */
}

.heading-xl {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  color: #EF4444;
  /* Match UI UX Pro Max red accent */
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.heading-sm {
  font-size: 1.25rem;
  font-weight: 600;
}

.text-body {
  font-size: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* Forms & Inputs */
.input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 300ms ease;
}

.input:focus {
  outline: none;
  border-color: var(--color-text);
}

.search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3xl);
  /* Adds a large gap below the search bar */
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-text);
  color: var(--color-background);
  padding: 14px 28px;
  border-radius: 4px;
  /* Slightly sharper for minimalist feel */
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 300ms ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-xl) 0;
  z-index: 50;
  transition: all 400ms ease;
  mix-blend-mode: difference;
  /* High contrast against any background */
}

.navbar.scrolled {
  padding: var(--space-md) 0;
  background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  mix-blend-mode: normal;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  /* Helps keep it centered between brand and actions */
  gap: var(--space-xl);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 300ms ease;
}

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

.nav-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 300ms ease;
}

.nav-actions button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(24, 24, 27, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 6rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-family: var(--font-heading);
  display: flex;
  flex-direction: column;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  transition: color 300ms ease;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover {
  color: var(--color-text-muted);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  /* For parallax effect */
  opacity: 0.6;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--color-background) 0%, transparent 60%);
}

.hero-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-text {
  max-width: 800px;
}

.hero-meta {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-text-muted);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background);
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* Sections */
.section {
  padding-top: 140px;
  /* Accounts for fixed navbar */
  padding-bottom: var(--space-3xl);
}

.section-header {
  margin-bottom: var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-md);
}

.grid-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.grid-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* View Container */
.main-content {
  min-height: 60vh;
}

/* Sub-nav filtering */
.filter-bar {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  transition: all 300ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-text);
  color: var(--color-background);
  border-color: var(--color-text);
}

/* Masonry Grid (CSS Columns approach for actual ratios) */
.photo-masonry {
  column-count: 1;
  column-gap: var(--space-xl);
}

@media (min-width: 640px) {
  .photo-masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .photo-masonry {
    column-count: 3;
  }
}

@media (min-width: 1536px) {
  .photo-masonry {
    column-count: 4;
  }
}

.photo-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 400ms ease;
  break-inside: avoid;
  margin-bottom: var(--space-xl);
  display: block;
  /* Ensure it behaves as a block in masonry */
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 24, 27, 0.9), transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 400ms ease;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.photo-item:hover img {
  transform: scale(1.05);
}

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

.album-card {
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.album-card:hover {
  transform: translateY(-4px);
}

.tag-chip {
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
}

.tag-chip:hover {
  background: var(--color-text);
  color: var(--color-background);
  border-color: var(--color-text);
}

.photo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-item:hover .photo-title {
  transform: translateY(0);
}

.photo-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transform: translateY(10px);
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 50ms;
}

.photo-item:hover .photo-date {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-background);
  opacity: 0.98;
}

.lightbox-header {
  position: relative;
  z-index: 101;
  display: flex;
  justify-content: space-between;
  padding: var(--space-xl);
}

.lb-close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 300ms ease;
}

.lb-close:hover {
  background: var(--color-text);
  color: var(--color-background);
  transform: rotate(90deg);
}

.lb-counter {
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
}

.lb-stage {
  position: relative;
  z-index: 101;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3xl);
}

.lb-image {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  box-shadow: var(--shadow-xl);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  transition: all 300ms ease;
  z-index: 102;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lb-prev {
  left: var(--space-xl);
}

.lb-next {
  right: var(--space-xl);
}

.lb-info {
  position: relative;
  z-index: 101;
  padding: var(--space-xl);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.lb-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.lb-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

/* Footer */
.footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* Utilities */
.glass {
  background: rgba(39, 39, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
}
/* ── CONTACT SECTION ────────────────────────────────── */
.contact-section {
  background: var(--color-surface, #111);
  border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
  padding: 7rem 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}
.contact-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted, #888);
  margin-bottom: 1rem;
}
.contact-heading {
  font-family: var(--font-heading, 'Bebas Neue', sans-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin: 0 0 1.5rem;
  color: var(--color-text, #fff);
}
.contact-sub {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted, #aaa);
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-text-muted, #aaa);
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #888);
  margin-bottom: 0.5rem;
}
.contact-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border, rgba(255,255,255,0.1));
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: var(--color-text, #fff);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.contact-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
}
.contact-textarea { resize: vertical; min-height: 120px; }
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .contact-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.contact-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-text, #fff);
  color: var(--color-bg, #000);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.contact-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.contact-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.contact-status {
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.contact-status.success { color: #4ade80; }
.contact-status.error   { color: #f87171; }
