@font-face {
  font-family: "Frankfurter";
  src: url("fonts/FrankfurterMedium\ Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* LOGO */
.logo {
  font-family: "Frankfurter", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.1rem;
  color: #333;
}

.logo-link {
  text-decoration: none; /* removes default link styling */
  color: inherit; /* keeps existing #333 color */
}

body {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  background: #f5f5f5;
}

/* ── MOBILE TOPBAR (hidden on desktop) ── */
.mobile-topbar {
  display: none;
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: #faf8f2;
  /* border-right: 1px solid #e8e4d9; */
  padding: 2rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
  gap: 1rem;
  z-index: 100;
  overflow-y: auto;
}

.sidebar .logo {
  font-size: 1.6rem;
  font-weight: 900;
  font-style: normal;
  color: #333;
  text-transform: uppercase;
  border-bottom: 3px solid #ffad39;
  padding-bottom: 0.4rem;
  /* display: inline-block; */
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Sidebar fade in animation w/ staggered delay */
.sidebar ul li {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.sidebar ul li:nth-child(1) { animation-delay: 0.1s; }
.sidebar ul li:nth-child(2) { animation-delay: 0.2s; }
.sidebar ul li:nth-child(3) { animation-delay: 0.3s; }
.sidebar ul li:nth-child(4) { animation-delay: 0.4s; }
.sidebar ul li:nth-child(5) { animation-delay: 0.5s; }

.sidebar > ul > li > a,
.sidebar > ul > li > button.dropdown-toggle {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.sidebar > ul > li > a:hover,
.sidebar > ul > li > button.dropdown-toggle:hover { color: #ffad39; }

/* DROPDOWN TOGGLE ARROW */
.dropdown-toggle::before {
  /* the space after > in content: "❯ " did not work, added margin-right */
  /* content: "❯"; */
  content: "✦";
  /* font-size: 0.7rem; */
  /* color: #aaa; */
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.2s;
}
.dropdown-toggle.open::before {
  transform: rotate(90deg);
}

/* DROPDOWN */
.dropdown {
  padding-left: 1rem;
  margin-top: 0.3rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}
.dropdown.open {
  display: flex;
}

.dropdown li a {
  text-decoration: none;
  color: #ffad39;
  font-size: 0.9rem;
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.dropdown li a:hover { color: #c07010; }

/* MAIN CONTENT */
.content {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* MASONRY GRID Pinterest-style, Desktop — 4 columns */
.masonry {
  list-style: none;
  padding: 2rem 1.5rem;
  margin: 0;
  columns: 4 220px;
  column-gap: 0.8rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.8rem;
  animation: fadeUp 0.5s ease forwards;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  transition: opacity 0.2s;
  cursor: zoom-in;
}

.masonry-item img:hover {
  opacity: 0.8;
}

/* LIGHTBOX OVERLAY */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  justify-content: center;
  align-items: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* Cursor pointer on hover for images */
.lightbox-trigger {
  cursor: zoom-in;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

/* CONTACT */
.contact { background: white; padding: 4rem 2rem; text-align: center; }
.contact h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.contact > p { color: #666; margin-bottom: 2rem; }
.contact form { max-width: 480px; display: flex; flex-direction: column; gap: 1rem; margin: 0 auto; }
.contact input, .contact textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.contact textarea { height: 120px; resize: vertical; }
.contact button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.contact button:hover { background: #2980b9; }
#form-message { color: green; font-weight: bold; min-height: 1.5rem; }

/* FOOTER */
footer {
  margin-top: auto;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-secondary);
  padding-top: 1rem;
  /* border-top: 1px solid #e8e4d9; */
}

/* HAMBURGER BUTTON */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DARK OVERLAY */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
}
.overlay.visible { display: block; }

/* SVG social media icons */
.social-link {
  color: #ffad39;
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.7;
}

/* Inline the icons */
.social-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.sidebar-header .social-links {
  display: flex;
}

.about-section {
  padding: 4rem 2rem;
  /* background: white; */
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-img {
  width: 420px;
  flex-shrink: 0;
  border-radius: 10px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.about-img          { animation-delay: 0.1s; }
.about-text h2      { animation-delay: 0.2s; }
.about-text p:nth-of-type(1) { animation-delay: 0.3s; }
.about-text p:nth-of-type(2) { animation-delay: 0.4s; }
.about-text p:nth-of-type(3) { animation-delay: 0.6s; }

.ko-fi {
  padding: 2rem;
}

.emote {
  font-size: 1.2rem;
  vertical-align: middle;
}

.tiny-text {
  font-size: 0.8rem;
  vertical-align: middle;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {

  /* Show the top bar */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: #faf8f2;
    /* border-bottom: 1px solid #e8e4d9; */
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .mobile-topbar .logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: normal;
    color: #333;
    text-transform: uppercase;
    border-bottom: 3px solid #ffad39;
    padding-bottom: 0.4rem;
    /* line-height: 1; */
  }

  /*⚠️ Hide the sidebar logo on mobile (shown in topbar instead) ⚠️*/
  /* .sidebar .logo { display: none; } */

  /* Sidebar slides in from left */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 240px;
    top: 0;
    padding-top: 1.5rem;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Content takes full width */
  .content { margin-left: 0; }

  /* Mobile — 2 columns */
  .masonry {
    columns: 2 0px;
  }

  /* Tighter masonry gap */
  .masonry {
    column-gap: 0.4rem;
  }

  .masonry-item {
    margin-bottom: 0.4rem;
  }

  /* Stack vertically on mobile */
  .about-inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-img {
    width: 200px;
    align-items: center;
  }

  .lightbox-caption {
    bottom: 75px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}