/* MOBILE-FIRST APPROACH */

/* Used the universal property selector (*) to style the initial margin, padding and box-sizing*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Apply a smooth scroll behavior to the page if necessary */
html {
  scroll-behavior: smooth;
}

/* font-family: 'montserrat', sans-serif; */
body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #9ca3af;
  min-height: 100vh;
  padding: 2rem 0;
}

/* Ensures img has full width of the container */
img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: none;
  cursor: pointer;
}

/* Anchor tag styles */
a:visited i {
  color: #5d08be;
}

a:active i {
  color: #74c7f3;
}

a:not([i]) {
  padding: 0.3rem;
  font-size: 1.2rem;
}

ul {
  list-style-type: none;
}

h2 {
  font-family: roboto, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #0077b6;
}

/* Styled the container of the respective elements */
article {
  width: 90%;
  max-width: 480px;
  background-color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
  transition: all ease-in-out 0.5s;
}

article:hover {
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
  scale: 101%;
}

/* Styles for the first section tag */
.hero {
  width: 100%;
  margin-bottom: 5rem;
  position: relative;
}

/* Styles for cover img container */
.cover_bg {
  height: 200px;
}

/* Styles for cover img */
.cover_bg img {
  height: 100%;
  object-fit: cover; /* Ensures it fills the div*/
  overflow: hidden;
  border-radius: 1.2rem, 0;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
}

/* Styles for profile img container */
.profile_img {
  width: 40%;
  margin: 0 auto;
  position: absolute;
  bottom: -4.8rem;
  left: 30%;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.profile_img img {
  border: 0.3rem solid #fff;
  border-radius: 50%;
}

.intro {
  width: 90%;
  margin: 0 auto;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #4a5568;
  background-color: #fff;
  line-height: 1.6;
}

.bio {
  margin-top: 1rem;
  color: #4a5568;
}

.personal-interests {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem auto;
}

.interest-group h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1a202c;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.tag-list li {
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

footer {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
}

/* Location & contact */
.location,
.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.icon {
  display: flex;
  color: #0077b6;
}

.time-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.time-container p {
  color: #1a202c;
  font-size: 0.9rem;
}

.socialLinks {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.1rem;
}

.socialLinks li a i:hover {
  color: #000;
}

/**********************************************/
/* DESKTOP-VIEW */
@media (min-width: 768px) {
  article {
    width: 100%;
    max-width: 571px;
    margin-top: 0;
  }

  .hero {
    width: 100%;
  }

  .cover_bg {
    height: 200px;
  }

  .profile_img {
    width: 25%;
    position: absolute;
    bottom: -3.8rem;
    left: 1.8rem;
  }

  .intro {
    text-align: start;
  }

  .location,
  .contact-info {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 0.5rem;
  }

  .interest-group h3 {
    text-align: start;
  }
  .tag-list {
    display: flex;
    justify-content: start;
  }

  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}
