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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f5f5f5;
  color: #333;
}

.profile-card {
  display: flex;
  flex-direction: column;
  background: #86d9f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 20px;
}

.profile-card:hover {
  transform: scale(1.02);
}


.avatar-container {
  margin-bottom: 15px;
}

.avatar-container img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}


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

h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

p {
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-bottom: 20px;
}

.social-links a {
  text-decoration: none;
  color: #0073e6;
  transition: color 0.2s;
}

.social-links a:hover,
.social-links a:focus {
  color: #004a99;
  outline: none;
}

section ul {
  margin-top: 5px;
  margin-bottom: 15px;
  padding-left: 20px;
}
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.button-group button {
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.button-group button:hover {
  background-color: #004a99;
}


main {
  background: #86d9f0;
  max-width: 800px;
  width: 90%;
  margin: 40px auto;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333;
  line-height: 1.6;
}

main h2 {
  font-size: 1.4rem;
  color: #004a99;
  margin-bottom: 10px;
  border-left: 4px solid #0073e6;
  padding-left: 10px;
  font-weight: 600;
}

main p {
  margin-bottom: 20px;
  font-size: 1rem;
}

main ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

main li {
  margin-bottom: 8px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button-group button {
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.button-group button:hover {
  background-color: #004a99;
}

main form {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

main h1 {
  text-align: center;
  color: #004a99;
  font-size: 1.8rem;
  margin-bottom: 25px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

input,
textarea {
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #0073e6;
  box-shadow: 0 0 4px rgba(0, 115, 230, 0.3);
  outline: none;
}

button[type="submit"] {
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #004a99;
}

.error {
  color: #d9534f;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.success {
  color: #28a745;
  font-size: 1rem;
  text-align: center;
  margin-top: 15px;
}


main .button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

main .button-group button {
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

main .button-group button:hover {
  background-color: #004a99;
}


@media (min-width: 768px) {
  .profile-card {
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    padding-bottom: 60px; 
  }

  .profile-card .avatar-container {
    flex: 0 0 120px;
    margin-right: 20px;
  }

  .profile-card .avatar-container img {
    width: 180px;
    height: 180px;
  }

  .profile-card .info {
    flex: 1;
  }

  
  .profile-card .button-group {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    justify-content: center;
  }


  main {
    padding: 40px 50px;
  }

  main h2 {
    font-size: 1.6rem;
  }

  main p,
  main li {
    font-size: 1.05rem;
  }

  main .button-group {
    position: static; 
    margin-top: 40px;
  }
}


