body.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inria Sans', sans-serif;
  margin: 0;
  padding-top: 84px; 
  padding: 0;
  color: #2d2a30;
  position: relative;
  background: none;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

body.dashboard::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../images/images/tree3.jpg') no-repeat center center fixed;
  background-size: cover;
  filter: blur(3px);
  transform: scale(1.04); /* prevents blur edges */
  z-index: 0;
  pointer-events: none;
}

body.dashboard::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.20),
    rgba(0,0,0,0.28)
  );
  z-index: 0;
  pointer-events: none;
}


/* Header */
.header {
  margin-top: 80px;
  text-align: center;
}

.header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  position: relative;
z-index: 1;
color: #F6F0E6;
}

.header p {
  font-size: 16px;
  color: #3A3432;
}


.dashboard-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
  gap: 40px;
  justify-content: center;
  padding: 60px 20px;
  flex: 1;
  position: relative;
z-index: 1;

}

.envelope-card {
  width: 200px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: floaty 6s ease-in-out infinite;
}

.envelope-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  perspective: 800px;
  transform-style: preserve-3d;
}

.envelope-wrapper .base {
  width: 100%;
  position: relative;
  z-index: 1;
}

.envelope-link {
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

.envelope-wrapper .content {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.envelope-wrapper .flap {
  width: 100%;
  position: absolute;
  top: 2px;
  left: 0;
  transform: rotateX(0deg) translateY(0px); /* Remove initial shift */
  transform-origin: top center;
  transition: transform 0.4s ease, z-index 0.4s ease;
  z-index: 3;
}

/* Hover Animation */
.envelope-card:hover .flap {
  transform: rotateX(140deg) translateY(8px);
  z-index: 0;
}

.envelope-card:hover .content {
  opacity: 1;
  transform: translateY(-10px);
}

.envelope-card:hover .base {
  transform: translateY(-5px);
  box-shadow: inset 0 5px 8px rgba(0,0,0,0.1);
}

.envelope-card .label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: #2b4379;
  font-family: 'Cormorant Garamond', serif;
  text-decoration: none;
}

.envelope-card:hover {
  transform: translateY(-8px) scale(1.05);
}

.envelope-card.audio .content {
  transform: scale(0.9) translateY(10px);
}

.envelope-card.audio:hover .content {
  opacity: 1;
  transform: scale(0.9) translateY(-10px);
}


/* Floating Animation */
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Footer */
.footer-content {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: #4c4c4c;
}



/* Footer Sticky at Bottom */
body.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Envelope Card Scaling for Mobile */
@media (max-width: 768px) {
  .envelope-card {
    width: 150px;
  }

  .envelope-card .label {
    font-size: 12px;
    bottom: -20px;
  }

  .header h1 {
    font-size: 28px;
  }

  .header p {
    font-size: 14px;
  }
}

/* Smaller screens */
@media (max-width: 480px) {
  .envelope-card {
    width: 120px;
  }

  .envelope-card .label {
    font-size: 11px;
    bottom: -18px;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header h1 {
    font-size: 24px;
  }
}

