/* Basic Reset and Page Layout */
body {
  margin: 0;
  padding: 0;
  background: #fafafa;
  font-family: 'Noto Sans', sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.site-header {
  margin-top: 40px;
  text-align: center;
  font-family: 'Noto Serif', serif;
  position: relative;
}

.highlight-wrapper {
  display: inline-block;
  position: relative;
}

.highlight-stroke {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 1em;
  transform: rotate(-2deg);
  z-index: -1;
  opacity: 0.95;
  animation: highlight-slide 1s ease-out forwards;
}

.name-splash {
  display: inline-block;
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: 0.5px;
  color: #111;
  position: relative;
  padding: 0 8px;
}

.name-splash::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 20%;
  width: 0%;
  height: 0.6em;
  background: #d0e7ff;
  transform: rotate(-2deg);
  z-index: -1;
  border-radius: 12px;
  animation: highlight-slide 0.5s ease-out forwards;
}

@keyframes highlight-slide {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.name-plain {
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0.5px;
  color: #111;
  margin-left: 8px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Profile Picture */
img.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 100px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

img.profile-pic:hover {
  transform: scale(1.05);
}

/* Headings and Text */
h1 {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.5rem;
  margin: 10px 0;
  font-weight: 600;
}

p.description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Social Links */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

.socials a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.socials svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

.socials a:hover {
  background: #e7f0f9;
  border-color: #3a5f8a;
  color: #3a5f8a;
}

.socials a:hover svg {
  transform: scale(1.1);
  color: inherit;
}

.socials a.contact-button {
  background: #3a5f8a;
  color: white;
  border: none;
}

.socials a.contact-button:hover {
  background: #2c4e74;
}

/* Currently Into Section */
section.currently h2,
section.projects h2 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #3a5f8a;
}

p.interests-line {
  font-size: .85rem;
  color: #555;
  margin: 10px auto 0;
  max-width: 500px;
  line-height: 1.6;
  text-align: center;
  padding: 0 15px;
}

/* Projects and Links Section */
section.projects {
  margin-top: 60px;
  border-top: 1px solid #ddd;
  padding-top: 30px;
  width: 100%;
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.links li {
  margin-bottom: 20px;
  font-size: 1rem;
}

ul.links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

ul.links a:hover {
  color: #3a5f8a;
}

.description-small {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 4px;
}

section.contact {
  margin-top: 80px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

section.contact h2 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #3a5f8a;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section.contact p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0px;
  width: 100%;
  padding: 0;
}

section.contact input,
section.contact textarea {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
  box-sizing: border-box;
}

section.contact textarea {
  resize: vertical;
  min-height: 120px;
}

section.contact button {
  background: #3a5f8a;
  color: white;
  font-size: 1rem;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

section.contact button:hover {
  background: #2c4e74;
}

p.alt-contact {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

p.alt-contact a {
  color: #3a5f8a;
  font-weight: 600;
  text-decoration: none;
}

p.alt-contact a:hover {
  text-decoration: underline;
}

.page-header {
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
}

.back-home {
  font-size: 0.9rem;
  color: #3a5f8a;
  text-decoration: none;
  font-weight: 600;
  padding-left: 10px;
}

.back-home:hover {
  text-decoration: underline;
}

/* Responsive Tweaks */
/* --------------------------------------------------------- */
@media (max-width: 600px) {
  
  .name-splash {
    font-size: 3rem;
  }

  img.profile-pic {
    width: 130px;
    height: 130px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .socials a {
    flex: 1 1 auto;
    min-width: 140px; /* Ensures social pills don't get crushed too small */
    justify-content: center;
  }

  p.interests-line {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  section.contact h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  section.contact p {
    margin-bottom: 20px;
  }

  section.contact form {
    gap: 15px;
  }

  section.contact input,
  section.contact textarea {
    font-size: 0.95rem;
  }
}
