* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background-image: url('1.gif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Playfair Display', serif;
}

.header {
  font-family: 'Great Vibes', cursive;
  font-size: 20vh;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  margin-top: 20vh;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  0% { text-shadow: 0 0 10px rgba(255,255,255,0.8); }
  100% { text-shadow: 0 0 50px rgba(255,255,255,1); }
}

.buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 50px;
  padding: 5vh 5vw;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.button-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.firefly-button,
.resume-button,
.linkedin-button,
.projects-button,
.skills-button,
.filler-button {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.firefly-button:hover,
.resume-button:hover,
.linkedin-button:hover,
.projects-button:hover,
.skills-button:hover {
  filter: brightness(1.5);
}

.firefly-button  { background-image: url('2.gif'); }
.resume-button   { background-image: url('butterfly.gif'); }
.linkedin-button { background-image: url('dandelion.gif'); margin-left: 10px; }
.projects-button { background-image: url('woodpecker.gif'); }
.skills-button   { background-image: url('leaf.gif'); }
.filler-button   { background-image: url('FILLER.gif'); opacity: 0.4; pointer-events: none; }

.about-me-text,
.resume-text,
.linkedin-text,
.projects-text,
.skills-text,
.filler-text {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 5px black;
}

.about-me-text:hover,
.resume-text:hover,
.linkedin-text:hover,
.projects-text:hover,
.skills-text:hover {
  color: #FFB6C1;
  text-shadow: 0 0 10px #FFB6C1;
}

.filler-text {
  opacity: 0.4;
}

.contact-info {
  text-align: center;
  margin-top: 40px;
  color: white;
  font-size: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  z-index: 10;
}

.contact-info a {
  color: #FFB6C1;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

.volume-control {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
  color: white;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-control input[type=range] {
  accent-color: #FFC1CC;
  height: 5px;
  border-radius: 4px;
}

#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #FFC1CC;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.firefly-loading {
  width: 60px;
  height: 60px;
  background-image: url('2.gif');
  background-size: contain;
  background-repeat: no-repeat;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.fly-away {
  animation: flyAway 2s ease-in-out forwards;
}

@keyframes flyAway {
  0%   { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(150px, -150px) scale(1.2); }
}

@media (max-width: 768px) {
  .header { font-size: 10vh; margin-top: 12vh; }
  .buttons-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 2vh 20px;
    margin-top: 5vh;
  }
  .firefly-button,
  .resume-button,
  .linkedin-button,
  .projects-button,
  .skills-button,
  .filler-button {
    width: 80px;
    height: 80px;
  }
  .about-me-text,
  .resume-text,
  .linkedin-text,
  .projects-text,
  .skills-text,
  .filler-text {
    font-size: 1.2rem;
  }
  .contact-info {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .volume-control {
    transform: scale(0.8);
    right: 10px;
  }
}

body::after {
  content: '';
  display: block;
  height: 5vh;
}
