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

body {
  font-family: "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 100px;
  align-items: center;
  min-height: 100vh;
  background: #061630;
  /* background: #f5f7fa; */
}

.profile-card {
  background: rgba(255, 255, 255, 0.534);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
  max-width: 900px;
  width: 95%;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.profile-card img {
  width: 120px;
  height: 120px;
  background: #000;
  /* border-radius: 50%; */
  border-radius: 10px;
  object-fit: cover;
}

figure {
  /* margin: 0 0 1rem 0; */
  margin-bottom: 1rem;
}

.profile-card header {
  margin-bottom: 0.5rem;
}

.profile-card h2 {
  font-size: 1.25rem;
  line-height: 1.1;
  color: #0f172a;
}

.profile-card p {
  /* color: #334155; */
  color: #0a1e3a;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

#user-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    "Segoe UI Mono", monospace;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #0f172a;
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.profile-card a {
  text-decoration: none;
  color: #470f0f;
  /* color: #0366d6; */
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-card a:focus {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.profile-card a:hover {
  background: rgba(3, 102, 214, 0.08);
}

.social-links a {
  display: inline-block;
}


.profile-card section h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: #0f172a;
}

.profile-card, .about-section section ul {
  list-style: disc inside;
  /* color: #475569; */
  color: #0a1e3a;
}

header:not(.profile-card header) {
  background: #1c66bbb9;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  transition: color 0.45s ease-out;
  min-height: 50px;
}

header:not(.profile-card header) a:hover  {
  color: rgb(24, 16, 16);
}


header:not(.profile-card header) a:active  {
  color: rgb(24, 16, 16);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
}


main {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.534);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-main {
  width: 500px;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.form-section {
  width: 100%;
  display: flex;
  gap: 20px;
}

.form-group{
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
  justify-content: space-between;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

textarea{
  resize: none;
}

button {
  background: #0078ff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #005fcc;
}

.error {
  color: red;
  font-size: 0.9rem;
}

.success {
  color: green;
  margin-top: 10px;
  font-weight: 500;
}

.about-section ul{
  color: black!important;
}
.about-section {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-section section:not(.about-sections){
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-sections {
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  /* background: #be2c2c; */
}

@media (max-width: 935px) {
  .about-section{
    width: 90%;
  }
}

@media (max-width: 768px) {
  main {
    width: 90%;
  }
}

@media screen and (max-width: 448px){
  .hobbies-dislikes{
    flex-direction: column!important;
  }
}

@media screen and (max-width: 620px){
  .profile-card section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .hobbies-dislikes {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .hobbies-dislikes section h3 {
    width: 100%;
    text-align: left;
  }
  
  .hobbies-dislikes section ul {
    text-align: left;
  }

  .form-section{
    flex-direction: column;
  }
}

@media screen and (min-width: 621px) {
  .profile-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    align-items: start;
    gap: 0.75rem 1.25rem;
    text-align: left;
    padding: 1.5rem;
  }

  figure {
    grid-column: 1;
    grid-row: 1 / span 6;
    display: flex;
    align-items: start;
    justify-content: center;
    margin: 0;
  }

  header {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 0.25rem 0;
  }

  p:nth-of-type(1) {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 0.5rem 0;
  }

  p:nth-of-type(2) {
    grid-column: 2;
    grid-row: 3;
    margin: 0 0 0.5rem 0;
  }

  nav {
    grid-column: 2;
    grid-row: 4;
    margin-bottom: 0.5rem;
  }

  .hobbies-dislikes {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.contact-body:has(small:not(:empty)){
  padding-top: 35px;
}

@media screen and (max-width: 730px) {
  body{
    padding-top: 40px;
  }

  .about-sections {
    flex-direction: column;
  }
}
