/* --- GLOBAL --- */
body {
  font-family: 'Georgia', serif;
  background: url('images/paper-texture.jpg') repeat;
  color: #2f2f2f;
  padding: 2rem;
  animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- HEADER --- */
header {
  text-align: center;
  margin-bottom: 2rem;
  background: url('images/tape.png') no-repeat center top;
  padding-top: 3rem;
}

header h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  height: auto;
  margin: 0.25rem;
}

/* --- MAIN LAYOUT --- */
main {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border: 2px dashed #d9b8e4;
  border-radius: 16px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.08);
}

/* --- BACKGROUND LAYERS --- */
.bg-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('images/paper-texture.jpg') repeat;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* --- NAV ICONS --- */
.nav-link {
  position: absolute;
  z-index: 2;
}

.nav-icon {
  width: 60px;
  height: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-icon:hover {
  transform: rotate(-5deg) scale(1.1);
  filter: brightness(1.1) drop-shadow(0 0 6px #eec8ff);
}

/* TEMPORARY placement — adjust based on where they should sit over your background */
#star-link     { top: 40%; left: 15%; }
#journal-link  { top: 55%; left: 30%; }
#envelope-link { top: 60%; left: 55%; }
#phone-link    { top: 70%; left: 75%; }

/* --- MUSIC PLACEHOLDER --- */
.music-placeholder {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.music-placeholder:hover {
  transform: rotate(-3deg) scale(1.05);
  opacity: 1;
}

.music-placeholder img {
  width: 60px;
  height: auto;
}

/* --- PORTFOLIO --- */
.portfolio-section {
  margin-bottom: 2.5rem;
}

.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.polaroid-grid img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border: 6px solid #fff;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.polaroid-grid img:hover {
  transform: rotate(0deg) scale(1.03);
}

.credits {
  border-left: 4px dashed #d9b8e4;
  padding-left: 1rem;
}

.credit {
  margin-bottom: 1.5rem;
}

/* --- ABOUT --- */
.about-texture {
  background: url('images/notebook-paper-texture.jpg') repeat;
  padding: 2rem;
  border: 2px dotted #bdaecb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.handwriting {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* --- LINKS --- */
a {
  color: #a66cb6;
  text-decoration: none;
  border-bottom: 1px dashed #a66cb6;
  transition: all 0.2s ease;
}

a:hover {
  color: #df9bec;
  border-bottom: 1px solid #df9bec;
}
