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

html,
body {
  height: 100%; /* Ensure body takes up full height */
  display: flex;
  flex-direction: column;
}

/* Container that will wrap everything */
body {
  font-family: "Inter", sans-serif;
  background-color: #f4f5f7;
  color: #222;
  line-height: 1.6;
  padding: 0 20px;
  flex: 1; /* Allows the main content to grow and push the footer */
}

.wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0; /* Reduced padding */
  flex-grow: 1; /* Makes the hero section take up available space */
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px; /* Reduced margin */
  border: 5px solid #333;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 15px; /* Reduced margin */
  color: #333;
}

p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 30px; /* Reduced margin */
}

/* Highlight Effect */
.highlight {
  position: relative;
  display: inline-block;
  padding-bottom: 3px; /* Adds small space between text and highlight */
}

.highlight::before {
  content: "";
  position: absolute;
  width: 115%; /* Extend the width slightly beyond the text */
  height: 27%; /* Make the highlight thinner */
  bottom: 8px; /* Moves the highlight upward */
  left: -7%; /* Slight offset for natural spill effect */
  background-color: rgba(
    255,
    215,
    0,
    0.5
  ); /* Softer pastel yellow with transparency */
  border-radius: 5px; /* Slight roundness */
  z-index: -1;
  transform: rotate(-3deg); /* Add a slight tilt for a natural effect */
}

/* Variations for Random Tilts */
.highlight:nth-child(2)::before {
  transform: rotate(-2deg);
}

.highlight:nth-child(3)::before {
  transform: rotate(-4deg);
}

.highlight:nth-child(4)::before {
  transform: rotate(-1deg);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px; /* Reduced gap */
}

.social-links .cta {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 18px; /* Reduced padding */
  border: 2px solid #333;
  border-radius: 30px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.social-links .cta i {
  font-size: 1.2rem;
}

.social-links .cta:hover {
  background-color: #333;
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  margin-top: auto; /* Ensures the footer is pushed to the bottom */
}

/* Styling specific to the footer's p tag */
footer p {
  font-size: 0.8rem !important; /* Ensure the font size is applied */
  color: #777 !important; /* Ensure the correct color is applied */
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0; /* Reduced padding for tablet */
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .social-links {
    flex-direction: column;
    gap: 10px;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .hero {
    padding: 40px 0; /* Reduced padding for mobile */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 20px; /* Reduced margin for mobile */
  }

  .cta {
    font-size: 0.9rem;
    padding: 8px 18px; /* Adjust padding */
  }

  footer {
    padding: 15px 0;
  }
}
