body {
  margin: 0;
  padding: 0;
  background-image: url("../images/background.webp"); /* Direct path to the image file */
  background-size: cover; /* Ensures the image covers the entire area */
  background-position: center center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-attachment: scroll; /* Allows the background to scroll with content */
  color: #fff;  /* Name and Title font color */
  position: relative; /* Necessary for the pseudo-element */
}

body::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10vh; /* Extends background for additional scrolling space */
  background-image: inherit; /* Uses the same background as the body */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: -1; /* Ensures the pseudo-element is behind other content */
}

.container {
  width: 100vw;
  min-height: 100vh; /* Use min-height to ensure it covers the full viewport height but allows content to expand */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content towards the top */
  align-items: center;
  text-align: center;
  font-family: Arial, sans-serif;
  padding-top: 20px; /* Adds some space at the top */
}

h1 {
  font-size: 2.5em; /* Name font size */
  margin-top: 10px; /* Reduced margin-top to pull closer to profile pic */
  margin-bottom: 5px;
  text-shadow:
    0 0 5px rgba(0, 0, 0, 1),   /* Inner dark shadow */
    0 0 10px rgba(0, 0, 0, 1),  /* Middle darker shadow */
    0 0 15px rgba(0, 0, 0, 1);  /* Outer darkest shadow */
}

p {
  font-size: 1.5em; /* Title font size */
  margin-top: 0px;
  margin-bottom: 10px; /* Reduced margin-bottom to tighten space below */
  text-shadow:
    0 0 5px rgba(0, 0, 0, 1),   /* Inner dark shadow */
    0 0 10px rgba(0, 0, 0, 1),  /* Middle darker shadow */
    0 0 15px rgba(0, 0, 0, 1);  /* Outer darkest shadow */
}

.profile-pic {
  width: 200px; /* Increased width */
  height: 200px; /* Increased height */
  border-radius: 50%;
  overflow: hidden;
  margin: 10px auto 10px; /* Adjusted margins for better spacing */
}

.profile-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px; /* Reduced margin-bottom to decrease space */
}

.icon-row a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px; /* Size of icon container */
  height: 20px;
  border-radius: 50%;
  background-color: #000000; /* Background color of Circle icons */
  color: #333; /* Color of font if icon isn't used */
  margin: 0 8px; /* Adjusted margin for smaller spacing */
  text-decoration: none;
  transition: all 0.3s ease;
}

.icon-row a:hover {
  background-color: #ccc; /* Hover color for circles */
  color: #D7D8D8;
}

ul {
  list-style: none;
  padding: 0; /* Removed extra padding for better alignment */
  margin: 15px 0; /* Reduced margin for better spacing */
}

li {
  margin: 10px 0;
}

a {
  display: block;
  padding: 20px;
  border-radius: 20px; /* Radius of the button links */
  background-color: #000000; /* Background color of buttons */
  color: #e3e3e3; /* Color of text in button */
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.5em;
  font-weight: bold;
}

a:hover {
  background-color: #ccc; /* Color of button on hover */
  color: #333; /* Color of text in hover button */
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center; /* Center footer content */
  padding: 10px 0; /* Added padding for spacing */
}

.footer-link {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 20px;
}

.footer-link a {
  text-decoration: none;
  color: #e3e3e3;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
}

.footer #click-here-link {
  text-decoration: none;
  color: #e3e3e3;
  font-size: 1.0rem;
  margin-top: 20px;
}

.footer-link a.button-without-border {
  border: none;
}

.button-without-border {
  border: none !important;
  outline: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: inline-block;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
  body::after {
    height: 15vh; /* Extends the background more for mobile */
  }

  .container {
    padding-top: 10px; /* Reduced padding for smaller screens */
  }

  h1 {
    font-size: 2em; /* Slightly smaller font size for mobile */
    margin-top: 5px; /* Less margin to pull text closer */
    margin-bottom: 3px;
    text-shadow:
       0 0 3px rgba(0, 0, 0, 1),   /* Inner dark shadow */
       0 0 6px rgba(0, 0, 0, 1),   /* Middle darker shadow */
       0 0 9px rgba(0, 0, 0, 1);   /* Outer darkest shadow */
   }

  p {
    font-size: 1.2em; /* Slightly smaller font size for mobile */
    margin-bottom: 5px; /* Less margin to tighten spacing */
    text-shadow:
       0 0 3px rgba(0, 0, 0, 1),   /* Inner dark shadow */
       0 0 6px rgba(0, 0, 0, 1),   /* Middle darker shadow */
       0 0 9px rgba(0, 0, 0, 1);   /* Outer darkest shadow */
   }

   .icon-row {
  margin-bottom: 5px; /* Tighter spacing below the icon row */
}

  .icon-row a {
    width: 15px; /* Smaller icons for mobile */
    height: 15px; /* Smaller icons for mobile */
    margin: 0 5px; /* Reduced margin to decrease space between icons */
  }

  ul {
    margin: 5px 0; /* Reduced margin for better spacing */
  }

  li {
    margin: 8px 0; /* Reduced spacing between list items */
  }
}
