/* Award Styling - Mobile Fixed */
.award-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 2rem;
}

.about-header a {
  font-family: product-sans, sans-serif;
  font-weight: bold;
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  color:#ff758c;
  justify-content: center;
}

.award-link {
  font-family: product-sans, sans-serif;
  font-weight: bold;
  font-size: 4.5rem;
  color: #ff758c;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  transition: color 0.3s ease, transform 0.2s ease;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  justify-content: center;
  /* Fix for mobile icon positioning */
  line-height: 1.2;
}

/* Hover effect */
.award-link:hover {
  color: #f1838e;
  transform: translateY(-2px);
  text-decoration-thickness: 4px;
}

/* Focus (keyboard users) */
.award-link:focus {
  outline: 3px solid #169ae7;
  outline-offset: 4px;
}

/* SVG icon - Mobile optimized */
.link-icon {
  width: 0.6em;  /* Slightly larger for better visibility */
  height: 0.6em;
  fill: currentColor;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  flex-shrink: 0;  /* Prevent icon from shrinking */
  margin-top: -0.1em;  /* Slight adjustment for better alignment */
}

.award-link:hover .link-icon {
  opacity: 1;
}

/* DYNAMIC TEXT SUB-HEADING */
.dynamic-wrapper {
  position: relative;
  padding-top: 1vw;
  padding-bottom: 1vw;
  margin-bottom: 0.5rem;
  width: 90%;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dynamic-sentence {
  margin: 0;
  text-align: center;
  font-size: clamp(16px, 4vw, 24px);
  text-shadow: 1px 1px 1px rgba(160, 79, 79, 0.8);
}

/* Static part of the sentence */
.static-text {
  color: #ffffff;
  font-size: clamp(1rem, 5vw, 2rem);
  font-weight: normal;
}

/* Dynamic part */
.dynamic-text {
  color: #f0acad;
  border-right: 2px solid #f1838e;
  white-space: nowrap;
  display: inline-block;
  padding-right: 5px;
  animation: blink 0.8s step-end infinite;
  vertical-align: bottom;
  font-size: clamp(1rem, 5vw, 2rem);
  max-width: 100%;
  overflow: hidden;
}

@keyframes blink {
    0%, 49% { border-color: #e6d2d4; }
    50%, 100% { border-color: transparent; }
}

/* Additional mobile-specific adjustments */
@media screen and (max-width: 768px) {
  .dynamic-wrapper {
    width: 95%;
    padding-top: 2vw;
    padding-bottom: 2vw;
  }
  
  .dynamic-text {
    white-space: normal; /* Allow wrapping on very small screens if needed */
    word-break: break-word;
  }
}

/* About Me Body */
.about-me-text p {
  margin: 1.5rem 0;
  line-height: 1.7;
  font-size: 1.5rem;
  color: #e9e2e2;
  position: relative;
  font-family: Satoshi, Arial, sans-serif;
  font-weight: 100;
  padding-left: 1rem;
  background: rgba(76, 175, 80, 0.05);
  border-radius: 6px;
  transition: background 0.3s ease;
}

.about-me-text p:not(#about-intro) {
  padding-left: 1rem;
}

/* Highlight Span */
.highlight {
  background: linear-gradient(90deg, #ff758c, #ff7eb3);
  color: #ff758c;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.highlight-bigger {
  background: linear-gradient(90deg, #ff758c, #ff7eb3);
  color: #ff758c;
  font-size: 2.5rem;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.about-image {
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-height: 400px;
}

.about-me-text figure {
  float: left;
  margin: 3rem;
  max-width: 300px;
}

.about-me-text img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50px;
}

.about-me-text::after {
  content: "";
  display: block;
  clear: both;
}

.about-me-text figcaption {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  border-left: 4px solid #ff758c;
  margin-top: 0.5rem;
  font-weight: lighter;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .award-link {
    transition: none;
  }
  .link-icon {
    transition: none;
  }
}

/* Responsive adjustments - Enhanced */
@media (max-width: 992px) {
  .award-header h1 {
    font-size: 3rem;
    line-height: 1.2;
  }

  .award-link {
    font-size: 2.5rem;
    gap: 0.4rem;
    line-height: 1.3;
  }

  .link-icon {
    width: 0.7em;  /* Slightly larger for tablet */
    height: 0.7em;
  }
}

@media (max-width: 768px) {
  .award-link {
    font-size: 2rem;
    gap: 0.4rem;
    /* Stack on very small screens if needed */
    flex-wrap: wrap;
    justify-content: center;
  }

  .link-icon {
    width: 0.8em;
    height: 0.8em;
    margin-top: 0;  /* Reset margin on smaller screens */
  }
}

@media (max-width: 576px) {
  .award-header h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .award-link {
    font-size: 1.8rem;
    gap: 0.4rem;  /* Increased gap for better spacing */
    line-height: 1.4;
    /* Allow wrapping on very small screens */
    flex-wrap: wrap;
  }

  .link-icon {
    width: 0.9em;  /* Make icon more prominent on mobile */
    height: 0.9em;
    margin-top: 0.1em;  /* Fine-tune alignment */
  }
}