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;
}

/* 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);
}

/* Active Navigation State */
.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%);
}

.nav-link.active-nav {
  opacity: 1;
}

/* 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 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: 240px;
  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-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;
}

.mobile-hire-button:hover {
  opacity: 1 !important;
  background-color: #27272a;
}

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

/* Credentials Page */
.credentials-section {
  background-color: #ffffff;
}

.credentials-title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 75px;
}

/* Intro Layout */
.credentials-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 90px;
  margin-bottom: 150px;
}

.credentials-text-block {
  max-width: 580px;
}

.credentials-text-block h2,
.previous-work-text h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.credentials-text-block p,
.previous-work-text p {
  font-size: 13px;
  line-height: 1.9;
  color: #111111;
  margin-bottom: 18px;
}

/* Previous Work */
.previous-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.previous-work-text {
  max-width: 580px;
}

/* Polaroid Style */
.polaroid {
  background-color: #443e40;
  padding: 18px 18px 48px;
  width: fit-content;
}

.polaroid-media {
  position: relative;
  overflow: hidden;
  background-color: #fff7f7;
}

.polaroid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder habang wala pang image */
.credential-photo-placeholder {
  width: 100%;
  height: 100%;
  background-color: #fff7f7;
}

/* Large Polaroid */
.polaroid-large {
  width: 360px;
}

.polaroid-large .polaroid-media {
  width: 100%;
  height: 300px;
}

.polaroid-tilt-left {
  transform: rotate(-6deg);
}

/* Small Polaroids */
.polaroid-small {
  width: 230px;
  padding: 12px 12px 34px;
}

.polaroid-small .polaroid-media {
  width: 100%;
  height: 190px;
}

.polaroid-group {
  position: relative;
  min-height: 520px;
}

.polaroid-top {
  position: absolute;
  top: 0;
  left: 90px;
  transform: rotate(10deg);
  z-index: 1;
}

.polaroid-right {
  position: absolute;
  top: 135px;
  right: 60px;
  transform: rotate(-8deg);
  z-index: 2;
}

.polaroid-bottom {
  position: absolute;
  bottom: 0;
  left: 120px;
  transform: rotate(-7deg);
  z-index: 3;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .credentials-section {
    padding-top: 70px;
  }

  .credentials-title {
    margin-bottom: 60px;
  }

  .credentials-intro {
    grid-template-columns: 1fr;
    gap: 70px;
    margin-bottom: 120px;
  }

  .credentials-text-block,
  .previous-work-text {
    max-width: 100%;
  }

  .polaroid-large {
    width: 330px;
    margin-left: 40px;
  }

  .polaroid-large .polaroid-media {
    height: 280px;
  }

  .previous-work {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .polaroid-group {
    min-height: 520px;
  }

  .polaroid-top {
    left: 160px;
  }

  .polaroid-right {
    right: 150px;
  }

  .polaroid-bottom {
    left: 190px;
  }
}

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

  .credentials-title {
    font-size: 20px;
    margin-bottom: 50px;
  }

  .credentials-intro {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 100px;
  }

  .credentials-text-block h2,
  .previous-work-text h2 {
    font-size: 22px;
  }

  .credentials-text-block p,
  .previous-work-text p {
    font-size: 13px;
    line-height: 1.8;
  }

  .polaroid-large {
    width: 260px;
    padding: 12px 12px 38px;
    margin: 0 auto;
  }

  .polaroid-large .polaroid-media {
    height: 220px;
  }

  .previous-work {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .polaroid-group {
    min-height: 430px;
  }

  .polaroid-small {
    width: 170px;
    padding: 10px 10px 28px;
  }

  .polaroid-small .polaroid-media {
    height: 140px;
  }

  .polaroid-top {
    top: 0;
    left: 30px;
  }

  .polaroid-right {
    top: 120px;
    right: 20px;
  }

  .polaroid-bottom {
    bottom: 0;
    left: 60px;
  }
}

/* Polaroid Hover / Tap Transition */
.polaroid-hover {
  cursor: pointer;
  transition: transform 0.4s ease, z-index 0.2s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
  .polaroid-hover:hover {
    transform: rotate(0deg) scale(1.03);
    z-index: 20;
  }
}

/* Mobile / tablet tap effect */
.polaroid-hover.is-straight {
  transform: rotate(0deg) scale(1.03);
  z-index: 20;
}

/* Optional: smoother image feeling inside */
.polaroid-hover img {
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .polaroid-hover:hover img {
    transform: scale(1.02);
  }
}

.polaroid-hover.is-straight img {
  transform: scale(1.02);
}

/* Footer Social Icons */
.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);
}

.social-icons a:focus {
  outline: 2px solid #000000;
  outline-offset: 4px;
}

/* Mobile Footer */
@media (max-width: 767px) {
  .social-icons {
    gap: 10px;
    margin-top: 22px;
  }

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