/* Pixel font (optional but recommended) */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffe6f0;
  font-family: 'VT323', monospace;
  color: #000;
}

/* Vertical pink line */
.side-line {
  position: fixed;
  left: 30px;
  top: 0;
  width: 4px;
  height: 100vh;
  background: hotpink;
}

/* Header */
header {
  margin-top: 40px;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 80px;
  display: inline-block;
  margin: 0 20px;
}

.star {
  width: 50px;
  position: relative;
}

.winkstar {
  width: 40px;
  position: relative;
  top: 10px;
}

/* Nav */
nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 40px 0 20px 0;
}

/* Update this selector to target the class we added */
.nav-button {
  background: #ffc0da;
  border: none;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  
  /* ADD THESE FOUR LINES TO FIX THE LINK LOOK */
  text-decoration: none;    /* Removes the underline */
  color: #000;             /* Forces the text to stay black */
  display: inline-block;   /* Allows padding and height to work correctly */
  line-height: normal;     /* Centers text vertically */
}

/* Make sure the hover still works */
.nav-button:hover {
  background: hotpink;
  color: #000;             /* Keeps text black even when hovering */
}

/* Main layout */
main {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 40px 40px 40px;
}

/* Image */
.image img {
  margin-top: 85px;
  width: 100%;
  image-rendering: pixelated;
}

.name-wrapper {
  position: relative;
  display: inline-block;
}


.star {
  position: absolute;
  width: 30px;
}

/* Left star: slightly below bottom-left of "mehek" */
.star.left {
  position: absolute;
  left: -5px;
  bottom: 0; /* Align it to the bottom of the 'm' first */
  transform: translateY(18px) rotate(9deg) scale(1.5); /* Forces it 15px FURTHER down */
}

/* Right star: slightly above top-right of "niwas" */
.winkstar.right {
  right: 30px;
  top: -15px;
  transform: rotate(-15deg); /* Tilts the star slightly */
}

/* Text */
.text h2 {
  font-size: 36px;
  margin-top: 0px;
  margin-bottom: 10px;
}

.text p {
  font-size: 20px;
  line-height: 1.4;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffc0da;
  border: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: hotpink;
}

.scroll-to-top img {
  width: 50px;
  height: 50px;
  image-rendering: pixelated;
}

.scroll-to-top span {
  color: #000;
}