/* ============================
   FONTS
============================ */
@font-face {
  font-family: "SuisseIntl";
  font-weight: 300;
  src: url(fonts/SuisseIntl/SuisseIntl-Ultralight.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 400;
  src: url(fonts/SuisseIntl/SuisseIntl-Thin.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 500;
  src: url(fonts/SuisseIntl/SuisseIntl-Light.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 600;
  src: url(fonts/SuisseIntl/SuisseIntl-Regular.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 700;
  src: url(fonts/SuisseIntl/SuisseIntl-SemiBold.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 800;
  src: url(fonts/SuisseIntl/SuisseIntl-Bold.otf) format("opentype");
}

@font-face {
  font-family: "SuisseIntl";
  font-weight: 900;
  src: url(fonts/SuisseIntl/SuisseIntl-Black.otf) format("opentype");
}

/* ============================
   CSS VARIABLES
============================ */
:root {
  --gold: #FFCE99;
  --gold-light: #FFCE99;
  --gold-dark: #562F00;
  --white: #FFFDF1;
  --off-white: #FFFDF1;
  --light-gray: #FFCE99;
  --mid-gray: #FFCE99;
  --text-dark: #562F00;
  --text-body: #562F00;
  --text-muted: #FFCE99;
  --font: 'SuisseIntl', 'Segoe UI', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

/* ============================
   GLOBAL
============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
}

body {
  height: 100vh;
  background-color: #FFFDF1;
  color: #562F00;
  cursor: url('../import/mouse.png'), auto;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: var(--gold-dark);
}

::selection {
  background: #FFCE99;
  color: #FFFDF1;
}


/* ============================
   HEADER
============================ */
a:hover,
button:hover,
.clickable:hover {
  cursor: url('../import/mouse2.png'), pointer;
}

body:active,
a:active,
button:active,
.clickable:active {
  cursor: url('../import/mouse3.png'), auto;
}

/* ============================
   WORK PAGE
============================ */
.work-page {
  position: relative;
  height: calc(100vh - 56px);
  display: flex;
  overflow: hidden;
  background: transparent;
}

.work-title-section {
  display: none;
}

/* ============================
   MEMORY LIST
============================ */
.project-list {
  width: 35%;
  height: 100%;
  padding: 8vh 3vw 4vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
  position: relative;
}

.project-list::-webkit-scrollbar {
  display: none;
}

.project-list li {
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.3s ease;
  margin-bottom: 0;
  letter-spacing: 1px;
  border-bottom: 1px solid #562F00;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.4s ease-in, transform 0.4s ease-in, color 0.3s ease, background 0.3s ease;
}

.project-list li.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 0.05s);
}

.project-list li a {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.8rem 1rem;
  transition: padding-left 0.3s ease;
}

.project-list li:hover {
  color: #562F00;
  background: #FFCE99;
}

.project-list li:hover a {
  padding-left: 1.3rem;
}

.memory-date-tag {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  min-width: 80px;
  flex-shrink: 0;
}

.memory-name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}


/* ============================
   BACKGROUND IMAGE PREVIEW
============================ */
.background-wrapper {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 35vw;
  height: 50vh;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(0.9) translateY(0);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(255, 150, 68, 0.6), 0 20px 80px rgba(86, 47, 0, 0.3);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
}

.background-image.visible {
  opacity: 1;
  animation: floatRecap 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
}

@keyframes floatRecap {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.02) translateY(-15px);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 70px rgba(255, 150, 68, 0.7), 0 20px 80px rgba(86, 47, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 150px rgba(255, 150, 68, 1), 0 20px 120px rgba(86, 47, 0, 0.5);
  }
}


/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {

  html,
  body {
    overflow: auto;
  }

  .work-page {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 56px);
  }

  .work-title-section {
    display: block;
    text-align: center;
    padding: 4vh 0 1vh;
  }

  .work-heading {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.8rem;
    color: #FFCE99;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .work-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFCE99, transparent);
    margin: 1rem auto 0;
  }

  .project-list {
    width: 90%;
    margin: 0 auto;
    padding: 2vh 0 4vh;
    height: auto;
    overflow: visible;
  }

  .project-list li {
    font-size: 0.85rem;
  }

  .background-wrapper {
    display: none;
  }

  .main-header {
    border-radius: 0;
  }

  .header-nav {
    gap: 1.2rem;
  }

  .header-nav a {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .header-logo a {
    font-size: 0.7rem;
  }

  .memory-date-tag {
    display: none;
  }

  .memory-name {
    font-size: 0.8rem;
  }
}