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

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-primary: #000000;
  --text-primary: #ffffff;
  --text-secondary: #828282;
  --border-color: #333333;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1080px;
}

/* --- RESET & BASICS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Force completely flat sharp corners */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* --- ANIMATED GRADIENTS (MOODBOARD SCHEME) --- */

/* Animation keyframes for the header's inverted gradient background, using 120 degrees */
@keyframes chatgpt-inv-gradient-animation {
  0%, 100% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

/* Animation keyframes for the body's gradient background, using 60 degrees */
@keyframes chatgpt-gradient-animation {
  0%, 100% {
    background-position: 0% 100%;
  }
  50% {
    background-position: 100% 0%;
  }
}

/* Applying the inverted gradient animation to the header with 120 degrees */
.chatgpt_inv_gradient_animation {
  background: linear-gradient(120deg, #141414 25%, #000000 75%);
  background-size: 200% 200%;
  animation: chatgpt-inv-gradient-animation 20s infinite ease-in-out;
}

/* Applying the gradient animation to the body with 60 degrees */
.chatgpt_gradient_animation {
  background: linear-gradient(60deg, #000000 25%, #141414 75%);
  background-size: 200% 200%;
  animation: chatgpt-gradient-animation 20s infinite ease-in-out;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #222222;
}
::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

/* --- TYPOGRAPHY & UTILITIES --- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  text-align: center;
  line-height: 1.6;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-fast);
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-secondary {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: transparent;
  color: var(--text-primary);
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-symbol-img {
  height: 48px;
  width: auto;
  filter: invert(1) hue-rotate(180deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.logo-desc {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.15rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* --- SQUARE BLURBS (3x2 GRID SYSTEM) --- */
.square-blurb-container {
  max-width: var(--max-width);
  margin: 4rem auto;
  padding: 0 2rem;
}

/* Base style for square blurbs */
.square-blurb {
  position: relative;
  width: 100%; /* Full width of the container */
  padding-top: 100%; /* Equal to the width to maintain square aspect */
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-width: 360px; /* Ensures it never gets smaller than 360px */
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: #0d0d0d;
}

.square-blurb-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.square-blurb-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.45);
  transition: var(--transition-smooth);
}

.square-blurb-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  transition: var(--transition-smooth);
}

/* Hover behaviors */
.square-blurb:hover .square-blurb-bg {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.square-blurb:hover .square-blurb-content {
  background-color: rgba(0, 0, 0, 0.1);
}

.square-blurb:hover .square-blurb-title {
  color: transparent; /* Matches Divi .gallery-item:hover text-color transparent */
}

/* Desktop layout - 3x2 grid */
@media screen and (min-width: 1080px) {
  .square-blurb-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px; /* Space between the blurbs */
  }
}

/* Mobile layout - stack blurbs */
@media screen and (max-width: 1079px) {
  .square-blurb-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .square-blurb {
    width: 360px; /* Force exactly 360px on stacked screens */
  }
}

/* --- ABOUT SECTION --- */
.about {
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrapper {
  border: 1px solid var(--border-color);
  background: #0d0d0d;
  aspect-ratio: 4/5;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.about-img-wrapper:hover {
  filter: grayscale(0%);
}

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

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-skills {
  margin-bottom: 2.5rem;
}

.skills-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-socials {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

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

.contact-form {
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  background: rgba(0,0,0,0.4);
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--text-primary);
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  display: none;
}

.form-status.success {
  display: block;
  border: 1px solid #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.form-status.error {
  display: block;
  border: 1px solid #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: #000000;
}

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

.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- LIGHTBOX MODAL WITH NAVIGATION SLIDER --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid #222222;
}

.lightbox-caption {
  margin-top: 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Lightbox Slider Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.25rem;
}

.lightbox-arrow:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.lightbox-arrow-left {
  left: -70px;
}

.lightbox-arrow-right {
  right: -70px;
}

/* --- RESPONSIVE LAYOUTS --- */
/* ==================== CLIENT PHOTOBOOK GALLERY & PASSWORD GATE ==================== */

.hidden {
  display: none !important;
}

/* Page base margins without header/footer */
body.chatgpt_gradient_animation {
  margin: 0;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

/* Password Gate Screen (Passe-partout theme) */
.gate-layout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 95vh;
  max-width: 1200px; /* Reduced to medium-large size */
  width: 95%; /* Responsive scaling */
  margin: 0 auto;
  gap: 2.5rem;
}

/* Cover Image inside a massive white mat board (reduced frame, expanded max-width) */
.gate-cover-mat {
  background: #ffffff;
  padding: 15px 15px 22px 15px; /* Reduced to half */
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 1px solid #eaeaea;
  width: 100%;
  max-width: 1200px; /* Aligned to 1200px maximum */
  max-height: 60vh; /* Limits short-side height on laptops */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.photobook-cover-img-box {
  position: relative;
  width: 100%;
  height: 100%; /* Fill mat board space */
  max-height: 55vh; /* Keep photo height shorter */
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f7f7f7;
}

.photobook-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop slightly to prevent scroll overflows */
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Minimal Password Field at the bottom */
.gate-input-wrap {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.gate-form-minimal {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.gate-form-minimal input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.25rem;
  width: 100%;
  outline: none;
}

.gate-form-minimal input::placeholder {
  color: #555555;
  letter-spacing: 0.15em;
}

.gate-form-minimal button {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: opacity var(--transition-fast);
}

.gate-form-minimal button:hover {
  opacity: 0.7;
}

.gate-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  display: none;
  letter-spacing: 0.05em;
}

/* Container for extra large matted gallery spacing */
.container-large {
  width: 100%;
  max-width: 1600px; /* Expanded grid container */
  margin: 0 auto;
  padding: 0 240px 0 2rem; /* Right padding to prevent photos from overlapping the logo */
  box-sizing: border-box;
}

/* Photobook Editorial Grid Layout */
.photobook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 4rem 3rem; /* Tighter gap to make photos even bigger */
  margin-top: 2rem;
}

/* Passe-partout style white frame */
.photobook-item {
  display: flex;
  flex-direction: column;
  background: #ffffff; /* Passe-partout card board */
  padding: 24px 24px 36px 24px; /* White frame border padding */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45); /* Gives print depth */
  border: 1px solid #eaeaea;
  box-sizing: border-box;
}

/* Aspect ratio specific box styling - height auto to prevent cropping */
.photobook-image-box {
  position: relative;
  width: 100%;
  height: auto; /* Auto height to respect proportions */
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Inner cut edge of mat board */
  background-color: #f7f7f7;
}

.book-img {
  width: 100%;
  height: auto; /* Natural height */
  display: block;
  transition: transform var(--transition-smooth);
}

.photobook-image-box:hover .book-img {
  transform: scale(1.02);
}

/* Specific Ratios classes - disabled to prevent cropping */
.aspect-2-3, .aspect-4-5, .aspect-9-16 {
  aspect-ratio: auto;
}

/* Grid Layout Spans */
.span-full {
  grid-column: span 2;
  max-width: 1200px; /* Reduced to 1200px maximum width in the gallery */
  margin: 0 auto;
  width: 100%;
}

/* Image Meta & Descriptions underneath (hidden since we don't want captions) */
.photobook-meta-bar {
  display: none !important;
}

/* Hover Download Overlay Icon Button */
.download-overlay-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.photobook-image-box:hover .download-overlay-btn {
  opacity: 1;
  pointer-events: auto;
}

.download-overlay-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Download Link at the bottom of the page */
.delivery-footer-wrap {
  display: flex;
  justify-content: center;
  margin: 8rem 0 4rem 0;
}

.btn-delivery {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.btn-delivery:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* Mobile Photobook Adjustments */
@media (max-width: 980px) {
  body.chatgpt_gradient_animation {
    padding: 2rem 1rem;
  }
  
  .gate-cover-mat {
    padding: 15px 15px 25px 15px;
  }
  
  .photobook-item {
    padding: 15px 15px 25px 15px;
  }
  
  .photobook-grid {
    grid-template-columns: 1fr;
    grid-gap: 4rem;
  }
  
  .span-full {
    grid-column: span 1;
    max-width: 100%;
  }
}

/* Floating top-right gallery logo (Always fixed in place as user scrolls) */
.gallery-logo-wrap {
  position: fixed;
  top: 3rem;
  right: 3rem;
  width: 180px; /* Made slightly larger */
  height: 180px;
  z-index: 100;
}

.gallery-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) hue-rotate(180deg);
}

/* Mobile top logo adjustments */
@media (max-width: 980px) {
  .container-large {
    padding: 0 1rem; /* Remove right padding on mobile */
  }
  
  .gallery-logo-wrap {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 3rem auto;
    width: 120px;
    height: 120px;
  }
}




