/* Fonts */
body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #f8dce0; /* pale pink */
  color: black;
}

/* Splash Screen */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #f8dce8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 1s ease;
  z-index: 9999;
  color: black;
  font-size: 3rem;
}

#splash-content {
  position: relative;
  display: inline-block; /* keeps sized around content */
  text-align: center;
}

#main-text {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: -0.1em; /* very tight, overlapping letters */
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: popIn 1s forwards 0.7s;
  user-select: none;
  color: black;
  position: relative;
  z-index: 2;
}

#star {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: none; /* clicks pass through */
  transition: opacity 0.7s ease;
  z-index: 1;
  animation: starFall 1s ease forwards 0.4s;
}

@keyframes starFall {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -200px); /* Start way above screen */
  }
  80% {
    opacity: 1;
    transform: translate(-80%, 30px); /* Slightly overshoot below final */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0); /* Final position */
  }
}

#splash-content {
  position: relative;
  display: inline-block;
}

/* RUBYSBRAINS title */
#main-text {
  position: relative;
  z-index: 2;
}

/* Ruby Ellenby perfectly overlapped */
#sub-text {
  position: absolute;
  top: 50%;        /* vertical align center */
  left: 50%;       /* horizontal align center */
  transform: translate(-50%, -86%) rotate(0deg);
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;  /* adjust until it fits perfectly over the main text */
  font-weight: 700;
  color: black;
  opacity: 0;
  animation: fadeInSignature 1.8s ease forwards;
  animation-delay: 1.2s; /* comes in after RUBYSBRAINS */
  z-index: 3; /* above RUBYSBRAINS — change to 1 if you want it behind */
  pointer-events: none;
  white-space: nowrap;
}

@keyframes fadeInSignature {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

@keyframes fadeInSignature {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

@keyframes fadeInSignature {
  to {
    opacity: 1;
  }
}

/* Animations */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0) translateY(30px);
  }
  60% {
    opacity: 1;
    transform: scale(1.8) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Navigation */
header {
  background: white;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1100;
}

/* Hamburger icon */
#hamburger {
  font-size: 30px;
  cursor: pointer;
  color: #f0c2ca;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 1100;
}

/* Show hamburger on hover */
body:hover #hamburger,
#hamburger:hover {
  opacity: 1;
}

/* Menu */
#menu {
  display: none;
  background-color: white;
  padding: 15px 20px;
  position: fixed;
  top: 60px;
  left: 20px;
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1200;
  flex-direction: column;
}

/* Show menu when toggled */
#menu:not(.hidden) {
  display: flex;
}

/* Main menu links */
#menu > a,
#menu > .dropdown > a {
  color: #d36fa0;
  text-decoration: none;
  display: block;
  margin: 15px 0;
  font-weight: 700;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
}

/* Dropdown submenu */
.submenu {
  display: none;
  margin-left: 20px;
  margin-top: 8px;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  color: black;
}

/* Show submenu on hover */
.dropdown:hover .submenu {
  display: block;
}

/* Submenu links */
.submenu a {
  color: black;
  font-weight: 600;
  font-size: 1rem;
  margin: 8px 0;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.submenu a:hover {
  color: #d36fa0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}

.gallery-item {
  background: white;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Heart styling - empty outline */
#heart path {
  fill: #750c0c;
  stroke: black;
  stroke-width: 1;
  filter: drop-shadow(1px 1px 3px #570808);
}

/* Footer heart styling and animation */
#footer-heart {
  animation: heartPulse 2s infinite ease-in-out;
  transform-origin: center center;
  cursor: default;
  margin-left: 10px; /* spacing if inline with text */
  vertical-align: middle; /* align with text baseline */
}

/* Heart pulse animation */
@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}

/* Social footer */
#social-footer {
  background: black;
  padding: 15px 20px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  color: #f5ced4;
  border-top: 1px solid #d36fa0;
  text-align: center;
  margin-top: 40px;
}

/* Flex container for social sections */
.social-sections {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Each social section */
.social-section {
  font-size: 1.1rem;
}

/* Links styling */
.social-section a {
  color: #f5ced4;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.social-section a:hover {
  color: #f5ced4;
  text-decoration: underline;
}

/* Time capsule link styling */
#time-capsule-link a {
  font-size: 1rem;
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

#time-capsule-link a:hover {
  color: #b35e7e;
  text-decoration: none;
}

/* Footer copyright text styling */
#social-footer > div:last-child {
  margin-top: 50px;
  font-size: 0.4rem;
  color: #750c0c;
  font-family: 'Josefin Sans', sans-serif;
  user-select: none;
  text-align: center;
}

/* Artist name above footer */
#artist-name {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  color: black;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 900;
}
