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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.main-nav {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5e9;
  padding: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 800px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #2d3748;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: #d63637;
  color: white;
}

.profile-card,
.contact-card,
.about-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5e9;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

.card-header {
  background: #ffffff;
  color: #2d3748;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #e1e5e9;
}

@media (min-width: 769px) {
  .card-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    padding: 2rem;
  }
  .avatar-section {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .name-section {
    flex: 1;
  }
  .user-name {
    margin: 0 0 0.5rem 0;
  }
  .user-title {
    margin: 0;
  }
}

.avatar-section {
  margin-bottom: 1rem;
}

.avatar-figure {
  margin: 0;
  display: inline-block;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #d63637;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar:hover,
.avatar:focus {
  transform: scale(1.05);
}

.user-name {
  font-family: "Aleo", serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem 0;
  color: #2d3748;
}

.user-title {
  font-size: 1rem;
  color: #718096;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

.card-content {
  padding: 2rem;
}

.bio-section {
  margin-bottom: 2rem;
}

.user-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  color: black;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.time-section {
  background: #f7f9fc;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: center;
}

.time-label {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 0.5rem;
}

.user-time {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d63637;
  font-family: "Courier New", monospace;
}

.social-nav {
  margin: 2rem 0;
  text-align: center;
}

.social-nav h3 {
  font-family: "Aleo", serif;
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

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

.social-link {
  background: white;
  color: #2d3748;
  padding: 0.8rem;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d63637;
  width: 48px;
  height: 48px;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus {
  background: #d63637;
  transform: translateY(-1px);
}

.lists-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.list-section {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e1e5e9;
  transition: border-color 0.3s ease;
}

.list-section:hover {
  border-color: #d63637;
}

.list-section h3 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list {
  list-style: none;
}

.list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e1e5e9;
  color: #4a5568;
  transition: color 0.2s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  color: #d63637;
}

.list-item::before {
  content: "• ";
  color: #d63637;
  font-weight: bold;
  margin-right: 0.5rem;
}

.contact-title,
.about-title {
  font-family: "Aleo", serif;
  font-size: 2rem;
  color: #2d3748;
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.contact-card,
.about-card {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  font-size: 1rem;
  color: #2d3748;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #d63637;
  box-shadow: 0 0 0 3px rgba(214, 54, 55, 0.1);
}

.form-input[aria-invalid="true"] {
  border-color: #d63637;
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.error-message {
  color: #d63637;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.success-message {
  color: #2d3748;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1rem;
  background: #f7f9fc;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e1e5e9;
}

.form-submit {
  background: #d63637;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-submit:hover,
.form-submit:focus {
  background: #b32d2e;
}

.about-section {
  margin-bottom: 2rem;
}

.about-section h2 {
  font-family: "Aleo", serif;
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .card-header,
  .contact-card,
  .about-card {
    padding: 1.5rem;
  }
  .user-name,
  .contact-title,
  .about-title {
    font-size: 1.5rem;
  }
  .avatar {
    width: 100px;
    height: 100px;
  }
  .card-content {
    padding: 1.5rem;
  }
  .lists-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .social-links {
    justify-content: center;
  }
  .social-link {
    width: 48px;
    height: 48px;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .card-header,
  .contact-card,
  .about-card {
    padding: 1rem;
  }
  .user-name,
  .contact-title,
  .about-title {
    font-size: 1.3rem;
  }
  .avatar {
    width: 80px;
    height: 80px;
  }
  .user-bio,
  .about-section p {
    font-size: 1rem;
  }
  .social-link {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-contrast: high) {
  .profile-card,
  .contact-card,
  .about-card {
    border: 2px solid #000;
  }
  .social-link,
  .form-input,
  .form-submit {
    border: 2px solid #000;
  }
}
