html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  background-color: #ffffff;
}

/* Standard Navigation Link */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
  color: #000000;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link.active-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  background-color: #000000;
  border-radius: 999px;
  transform: translateX(-50%);
}

/* Photobooth CTA in Header */
.photobooth-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #000000;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.photobooth-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.photobooth-cta:hover {
  background-color: #18181b;
  transform: translateY(-2px);
}

.photobooth-cta:hover::before {
  transform: translateX(120%);
}

.photobooth-cta i {
  font-size: 11px;
}

.active-photobooth-cta {
  box-shadow: 0 0 0 2px #000000, 0 0 0 5px #ffffff;
}

/* Active state inside mobile menu */
.mobile-menu a.active-mobile-nav {
  font-weight: 700;
  color: #000000;
}

.mobile-menu a.active-mobile-nav::before {
  content: "• ";
}

/* Mobile Photobooth CTA */
.mobile-photobooth-cta {
  margin-top: 12px;
  text-align: center;
  background-color: #000000;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 15px 18px !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.mobile-photobooth-cta:hover {
  opacity: 1 !important;
  background-color: #18181b;
}

.active-mobile-photobooth {
  box-shadow: inset 0 0 0 2px #ffffff;
}

/* Navigation */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 6px;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link.active-nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  background-color: #000000;
  border-radius: 999px;
  transform: translateX(-50%);
}

/* Burger Button */
.hamburger-button {
  width: 38px;
  height: 38px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hamburger-button:hover {
  background-color: #f4f4f5;
}

.hamburger-line {
  width: 16px;
  height: 1.5px;
  background-color: #000000;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.hamburger-button.open .hamburger-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.hamburger-button.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button.open .hamburger-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 24px;
  background-color: #ffffff;
  border-top: 1px solid transparent;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease, border-color 0.3s ease;
}

.mobile-menu.open {
  max-height: 320px;
  opacity: 1;
  padding: 12px 24px 24px;
  border-top-color: #eeeeee;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 500;
  color: #000000;
  border-bottom: 1px solid #f1f1f1;
  transition: opacity 0.25s ease;
}

.mobile-menu a:hover {
  opacity: 0.6;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a.active-mobile-nav {
  font-weight: 700;
}

.mobile-menu a.active-mobile-nav::before {
  content: "• ";
}

.mobile-hire-button {
  margin-top: 10px;
  text-align: center;
  background-color: #000000;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 14px 0 !important;
  border-bottom: none !important;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Photobooth Main */
.photobooth-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.photobooth-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.photobooth-sidebar {
  padding-top: 20px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.photobooth-title {
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.06em;
}

.photobooth-face {
  font-size: 28px;
  margin-top: 18px;
}

.photobooth-description {
  max-width: 360px;
  font-size: 18px;
  line-height: 1.45;
  margin-top: 30px;
  margin-bottom: 34px;
}

/* Editable Name Field */
.name-control {
  margin-bottom: 34px;
}

.name-control label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.name-control input {
  width: 100%;
  background-color: #f4f4f5;
  border: 1px solid #d4d4d8;
  padding: 14px 16px;
  font-size: 14px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.name-control input:focus {
  border-color: #000000;
  background-color: #ffffff;
}



.steps-list {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 22px 0;
  margin-bottom: 30px;
}

.step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-item span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex: 0 0 auto;
}

.step-item h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 13px;
  color: #444444;
}

/* Template Picker */
.template-picker h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.template-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.template-option {
  position: relative;
  border: 1px solid #d4d4d8;
  background-color: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.template-option:hover {
  border-color: #000000;
  transform: translateY(-2px);
}

.template-option.active-template {
  border-color: #000000;
}

.template-option.active-template::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: #000000;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-option small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 7px;
  text-transform: uppercase;
}

.mini-frame {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #f5f5f5;
}

.mini-classic {
  border: 8px solid #111111;
  border-bottom-width: 22px;
}

.mini-white {
  border: 8px solid #f7f7f4;
  border-bottom-width: 22px;
  box-shadow: inset 0 0 0 1px #dddddd;
}

.mini-film {
  border: 8px solid #000000;
  border-bottom-width: 22px;
}

/* Buttons */
.primary-camera-button {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 17px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.primary-camera-button:hover {
  background-color: #27272a;
  transform: translateY(-1px);
}

.privacy-note {
  margin-top: 16px;
  font-size: 12px;
  color: #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Preview */
.photobooth-preview-area {
  text-align: center;
}

.preview-frame {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 28px 44px;
  background-color: #111111;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #d9d9d9;
}

.camera-stage video,
.camera-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.camera-stage video.mirror {
  transform: scaleX(-1);
}

.camera-stage canvas {
  background-color: #ffffff;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.camera-placeholder i {
  font-size: 56px;
  margin-bottom: 18px;
}

.camera-placeholder p {
  font-size: 18px;
  margin-bottom: 8px;
}

.camera-placeholder span {
  font-size: 14px;
}

.preview-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 28px;
  text-align: left;
}

.preview-caption strong {
  display: block;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.preview-caption span {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.preview-caption p {
  font-size: 30px;
}

/* Preview Template Styles */
.preview-frame.template-classic {
  background-color: #111111;
  color: #ffffff;
}

.preview-frame.template-white {
  background-color: #f7f7f4;
  color: #000000;
  box-shadow: inset 0 0 0 1px #dddddd;
}

.preview-frame.template-film {
  background-color: #050505;
  color: #ffffff;
  box-shadow: inset 0 0 0 8px #000000;
}

/* Camera Controls */
.camera-controls {
  max-width: 640px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.control-button {
  background-color: #f4f4f5;
  color: #000000;
  padding: 15px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.control-button:hover:not(:disabled) {
  background-color: #e4e4e7;
  transform: translateY(-1px);
}

.control-button-dark {
  background-color: #000000;
  color: #ffffff;
}

.control-button-dark:hover:not(:disabled) {
  background-color: #27272a;
}

.control-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.photobooth-status {
  margin-top: 18px;
  font-size: 13px;
  color: #52525b;
}

/* Template Ideas */
.template-ideas {
  padding-top: 40px;
  padding-bottom: 100px;
}

.template-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  margin-bottom: 46px;
}

.template-heading span {
  height: 1px;
  background-color: #000000;
}

.template-heading h2 {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.template-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  align-items: center;
}

.template-card {
  background-color: #f4f4f5;
  padding: 14px 14px 24px;
}

.sample-frame {
  aspect-ratio: 3 / 4;
  padding: 14px 14px 42px;
  margin-bottom: 20px;
}

.sample-photo {
  width: 100%;
  height: 82%;
  background: linear-gradient(135deg, #d4d4d8, #f4f4f5);
}

.sample-caption {
  padding-top: 12px;
}

.sample-caption strong,
.sample-caption small {
  display: block;
  font-size: 10px;
}

.sample-classic {
  background-color: #111111;
  color: #ffffff;
}

.sample-white {
  background-color: #f7f7f4;
  color: #000000;
  box-shadow: inset 0 0 0 1px #dddddd;
}

.sample-film {
  background-color: #050505;
  color: #ffffff;
}

.template-number {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.template-card h3,
.tips-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.template-card p,
.tips-card li {
  font-size: 13px;
  line-height: 1.6;
  color: #3f3f46;
}

.tips-card {
  background-color: #f4f4f5;
  padding: 36px;
  border-radius: 16px;
}

.tips-card i {
  font-size: 30px;
  margin-bottom: 18px;
}

.tips-card ul {
  padding-left: 18px;
  margin-top: 16px;
}

.tips-card p {
  font-size: 34px;
  text-align: right;
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding-top: 40px;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .photobooth-container {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .photobooth-sidebar {
    padding-top: 0;
  }

  .photobooth-description {
    max-width: 520px;
  }

  .template-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .photobooth-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .photobooth-container {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .photobooth-title {
    font-size: 46px;
  }

  .photobooth-description {
    font-size: 15px;
  }

  .template-options {
    gap: 10px;
  }

  .preview-frame {
    padding: 16px 16px 30px;
  }

  .preview-caption {
    padding-top: 18px;
  }

  .preview-caption strong {
    font-size: 18px;
  }

  .preview-caption span {
    font-size: 11px;
  }

  .preview-caption p {
    font-size: 22px;
  }

  .camera-controls {
    grid-template-columns: 1fr 1fr;
  }

  .control-button {
    font-size: 12px;
    padding: 14px 12px;
  }

  .template-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .template-heading span {
    display: none;
  }

  .template-card-grid {
    grid-template-columns: 1fr;
  }

  .social-icons {
    gap: 10px;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}