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

body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  background: #1e1e2f;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

article {
  background-color: #020817;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 1rem;
}

header ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 1rem;
  font-size: 1rem;
  font-weight: bold;
  list-style-type: none;
}
header a {
  color: #d1d5db;
  text-decoration: none;
}
header ul a:hover {
  color: #3b82f6;
}
.avatar-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

figure {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

figure h1 {
  color: #3b82f6;
  font-size: 1.5rem;
}

figure p {
  color: #d1d5db;
  font-size: 0.95rem;
}

figure .time {
  color: #a4aab3;
  font-size: 0.95rem;
  margin-top: -0.3rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 5px;
}

figure .time span {
  font-weight: 500;
  color: #d1d5db;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  list-style-type: none;
}

nav a svg {
  transition: transform 0.3s, color 0.3s;
  color: #d1d5db;
}

nav a:hover svg {
  transform: scale(1.2);
  color: #3b82f6;
}
.connect {
  color: #3b82f6;
}

section {
  background-color: #0a1222;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 1rem;
  gap: 2rem;
}

section h1 {
  color: #3b82f6;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.hobbies ul {
  list-style-type: none;
  padding-left: 0;
  line-height: 1.8rem;
}

.hobbies li {
  color: #d1d5db;
  font-size: 0.95rem;
  transition: color 0.3s;
}

/* GENERAL */
.card {
  background: #0f172a;
  color: white;
  width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ABOUT PAGE */
.about-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-page a{
  display: flex;
  justify-content: center;
  text-align: center;
}
.about-page section {
  margin-bottom: 2rem;
}

.about-page h2 {
  color: #38bdf8;
}

/* CONTACT PAGE */
.contact-page form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  background: #0f172a;
  padding: 2rem;
  border-radius: 1rem;
  color: white;
}
.contact-page  .fullname-email {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


.contact-page input,
.contact-page textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  background: #1e293b;
  color: white;
}

.contact-page button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

.contact-page button:hover {
  background: #1e40af;
}

.error-message {
  color: #f87171;
  font-size: 0.9rem;
}

.success-message {
  color: #4ade80;
  font-weight: bold;
  text-align: center;
}

@media (min-width: 768px) {
  section {
    flex-direction: row;
    justify-content: space-around;
    text-align: left;
  }

  section h1 {
    text-align: left;
  }

  figure {
    font-size: 1.2rem;
  }

  figure h2 {
    font-size: 2rem;
  }

  figure p,
  figure .time {
    font-size: 1.1rem;
  }

  .contact-page .fullname-email {
    flex-direction: row;
    gap: 1rem;
  }

}
