:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --bg-color: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.profile-container {
  max-width: 800px;
  margin: 2rem auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  position: relative;
  background-color: #f0f0f0;
  padding-top: 56.25%;
}

.cover-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  object-fit: contain;
}

.profile-info {
  position: relative;
  padding: 20px;
  background-color: #fff;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #ffffff;
  position: absolute;
  top: -75px;
  left: 20px;
  object-fit: cover;
}

.name-title {
  margin-left: 180px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary-color);
}

.content {
  padding: 2rem;
}

.bio {
  margin-bottom: 2rem;
}

.bio h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-bottom: 2rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.social-icon:hover {
  transform: scale(1.1);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
  margin: 0 10px;
}

.contact-btn:hover {
  background-color: var(--secondary-color);
}

.profile-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.profile-link:hover {
  text-decoration: underline;
}

.footer {
  background-color: var(--secondary-color);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .profile-container {
    margin: 1rem;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
    top: -60px;
  }

  .name-title {
    margin-left: 20px;
    padding-top: 70px;
  }

  h1 {
    font-size: 2rem;
  }

  .content {
    padding: 1.5rem;
  }
}

.contact-form-section {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-section h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.contact-form {
  display: grid;
  grid-gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 1rem;
  }
}
