/* ========== GLOBAL RESETS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  background-color: #faf2e9;
  text-align: center;
  font-family: 'Ballet';
}

/* ========== TYPOGRAPHY ========== */
.name {
  font-size: 100px;
  color: #4b362d;
  margin: 1% 0;
  font-family: 'Ballet';
  position: relative;
  z-index: 2; /* Fix: text above title-box */
}

.cool {
  font-size: 16px;
  color: #4b362d;
  margin: 1% 0;
  font-family: 'Arima';
}

header .name,
header .cool {
  position: relative;
  z-index: 2; /* Fix: text above title-box */
}

p {
  color: #c9ada7;
  text-align: center;
}

.main-title, .portfolio {
  font-size: 2.5em;
  color: #4b362d;
  font-family: 'Ballet', cursive;
  position: relative;
  z-index: 2; /* Fix: text above title-box */
}

.envelope-label, .caption, .reference-box {
  font-family: 'Arima', cursive;
}

/* ========== LAYOUT STRUCTURE ========== */
main {
  margin: 3% auto 0;
  width: 80%;
}

.align {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 100px;
  padding: 20px;
  text-align: left;
}

.text {
  max-width: 40%;
  text-align: center;
}

/* ========== IMAGES ========== */
img {
  border-radius: 10%;
  margin-top: 10%;
  height: auto;
}

img#intro {
  width: 500px;
  height: auto;
  border-radius: 2.3em;
}

/* ========== BUTTONS ========== */
.portfolio-button {
  background-color: #4b362d;
  font-family: 'Ballet';
  font-size: 24px;
  color: #f2e9e4;
  border: none;
  border-radius: 40px;
  padding: 5px 20px;
  margin: 25px auto 10px;
  width: 250px;
  height: 50px;
  cursor: pointer;
  display: inline-block;
}

.portfolio-button:hover {
  background-color: #9a8c98;
}

/* ========== HEADER SECTION ========== */
header {
  position: relative;
  padding: 20px 0;
  z-index: 1; /* create stacking context */
}

.title-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 30px;
  background-color: #c3b1a2;
  border-radius: 20px;
  z-index: 0; /* behind text */
}

/* link wrapping header text */
.home-link {
  text-decoration: none;
  position: relative;
  z-index: 3; /* above title box, catch clicks */
  display: inline-block;
}

.home-link:hover .main-title {
  color: #9a8c98;
}

/* ========== CONTENT CONTAINERS ========== */
.content-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
  gap: 40px;
}

.image-section {
  position: relative;
  width: 300px;
}

#portfolioimg {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#portfolioimg:hover {
  transform: scale(1.05);
}

.description-box {
  width: 300px;
  background-color: #e1dad2;
  color: #4b362d;
  padding: 20px;
  margin-top: 70px;
  border-radius: 10px;
  text-align: left;
  font-family: 'Arima';
}

.description-box h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.description-box p {
  font-size: 1em;
  line-height: 1.5;
  color: #c3b1a2;
}

/* ========== LIST BOX ========== */
.list {
  font-family: 'Arima';
  text-align: left;
  background-color: #e1dad2;
  border-radius: 10px;
  padding: 40px;
  margin: 30px;
}

/* ========== ENVELOPE GALLERY ========== */
.envelope-gallery {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 3rem;
}

.envelope-container {
  width: 300px;
  height: 220px;
  position: relative;
}

.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.envelope img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  transition: all 0.6s ease;
  background: transparent;
}

.back {
  z-index: 1;
}

.photo {
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.front {
  z-index: 3;
}

.flap {
  z-index: 4;
  transform-origin: top center;
  transition: transform 0.6s ease;
}

.envelope:hover .flap {
  transform: rotateX(-120deg);
}

.envelope:hover .photo {
  opacity: 1;
  transform: translateY(0);
}

.envelope-label {
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2em;
  color: #4b362d;
  background-color: #f2e9e4;
  padding: 5px 10px;
  border-radius: 5px;
  position: relative;
  text-align: center;
}

.envelope-label::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background-color: #d77fa1;
  transition: width 0.4s ease;
  margin: 0.3rem auto 0;
}

.envelope-wrapper:hover .envelope-label::after {
  width: 100%;
}

.envelope-bg {
  background-image: url("assets/portfolioBackground.png");
  background-size: cover;
  background-position: center;
  padding: 40px;
  border-radius: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 90%;
  margin: 0 auto;
}

/* Art Section container */
.art-section {
  background-color: #fffdf9;
  padding: 4rem 1rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.art-section h2 {
  font-family: 'Ballet', cursive;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #4b362d;
}
.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
}

.photo-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills cell, minimal crop */
  border-radius: 4px;
  display: block;
}

.photo-wall > * {
  aspect-ratio: 3 / 2; 
  overflow: hidden; 
}




/* ========== CS SECTION ========== */
.cs-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
}

.cs-disclaimer {
  font-size: 0.95rem;
  color: #7a6e66;
  font-style: italic;
  background-color: #fff8ec;
  border-left: 4px solid #e8cfa7;
  font-family: 'Quicksand', sans-serif;
  padding: 0.75rem 1rem;
  margin: 1rem 0 2rem;
  border-radius: 5px;
  max-width: 450px;
  text-align: center;
}

.reference-box {
  margin-top: 10px;
  font-size: 1rem;
  background-color: #f6eee4;
  color: #4b362d;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  max-width: 90%;
}
/*Music section*/
.music-main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.music-title {
  font-family: 'Ballet', cursive;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.music-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.music-block {
  background-color: #f6f0e4;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
}

.music-block h3 {
  font-family: 'Arima', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
