@use './variables' as *;

/* Section styling */
.sectionTitle {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}

.sectionTitle::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: $accent-fire;
  bottom: 0;
  left: 0;
  box-shadow: $glow-effect;
}

.profileImage {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid rgba(255, 100, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.profileImage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 100, 0, 0.2), transparent);
  z-index: 1;
}

.profileImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.9);
}

.introText {
  font-size: 1.1rem;
  line-height: 1.8;
  color: $text-ash;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.introText p {
  margin-bottom: 1.25rem;
}

.introText strong {
  color: $text-light;
}

.introText .accent {
  color: $accent-fire;
}

.connectLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  text-decoration: none;
  color: $text-light;
  transition: all 0.3s ease;
  border: 1px solid $card-border;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.connectLink:hover {
  background-color: rgba(255, 100, 0, 0.1);
  transform: translateY(-3px);
  border-color: $accent-fire;
  color: $text-light;
}

.connectIcon {
  color: $accent-fire;
}

/* Value cards */
.valueCard {
  background-color: $card-bg;
  border-radius: 8px;
  padding: 1.875rem;
  border: 1px solid $card-border;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  height: 100%;
}

.valueCard:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 100, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.valueIcon {
  font-size: 2.5rem;
  color: $accent-fire;
  margin-bottom: 1.25rem;
}

.valueTitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: $text-light;
}

.valueTitle::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background: $accent-fire;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.valueText {
  color: $text-ash;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Skills card */
.skillCard {
  background-color: $card-bg;
  border-radius: 8px;
  padding: 1.875rem;
  border: 1px solid $card-border;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.skillCard:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 100, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skillCard::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
  background: linear-gradient(to right, $accent-dragon, $accent-fire);
  border-radius: 8px 8px 0 0;
}

.skillHeader {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skillIcon {
  font-size: 2rem;
  color: $accent-fire;
}

.skillTitle {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: $text-light;
}

.skillCheck {
  color: $accent-fire;
  margin-right: 0.625rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 0;
  margin-top: 3rem;
  list-style: none;
}

.timeline:before {
  content: "";
  position: absolute;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, $accent-fire, $accent-dragon, rgba(255, 100, 0, 0.2));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timelineItem {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timelineItem:nth-child(odd) .timelineContent {
  margin-left: auto;
  padding-left: 3rem;
  border-radius: 8px;
}

.timelineItem:nth-child(even) .timelineContent {
  margin-right: auto;
  padding-right: 3rem;
  border-radius: 8px;
}

.timelineDot {
  width: 16px;
  height: 16px;
  background-color: $accent-fire;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: $glow-effect;
  z-index: 2;
}

.timelineDate {
  display: inline-block;
  font-size: 0.9rem;
  background-color: rgba(255, 100, 0, 0.1);
  color: $accent-fire;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.timelineTitle {
  font-size: 1.3rem;
  margin-bottom: 0.625rem;
  color: $text-light;
}

.timelineText {
  color: $text-ash;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.timelineContent {
  background-color: $card-bg;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid $card-border;
  position: relative;
  transition: all 0.3s ease;
  width: 45%;
}

.timelineContent:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 100, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Testimonials */
.testimonial {
  background-color: $card-bg;
  border-radius: 8px;
  padding: 1.875rem;
  margin-bottom: 1.875rem;
  border: 1px solid $card-border;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 100, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.testimonialContent {
  padding-left: 1.25rem;
  border-left: 3px solid $accent-fire;
  font-style: italic;
  color: $text-ash;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.authorAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.authorAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.authorName {
  font-weight: 600;
  font-size: 1.1rem;
  color: $text-light;
  margin-bottom: 0;
}

.authorTitle {
  color: $text-ash;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Blog post specific styles */
.postContainer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.postMain {
  background-color: $card-bg;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid $card-border;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.postHeader {
  position: relative;
}

.postFeaturedImage {
  height: 400px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.postFeaturedImage::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, $card-bg, transparent);
}

.postInfo {
  padding: 30px 40px;
}

.postContent {
  padding: 0 40px 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: #e0e0e0;
}

.shareSection {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid $card-border;
}

.shareTitle {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.shareButtons {
  display: flex;
  gap: 15px;
}

.shareButton {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: $text-ash;
  transition: all 0.3s ease;
}

.shareButton:hover {
  background-color: $accent-fire;
  color: $text-light;
  transform: translateY(-3px);
}

.authorSection {
  margin-top: 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.tocList {
  list-style: none;
}

.tocItem {
  margin-bottom: 12px;
  padding-left: 15px;
  position: relative;
}

.tocItem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: $accent-fire;
}

.tocLink {
  color: $text-ash;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.5;
  display: block;
}

.tocLink:hover {
  color: $accent-fire;
  transform: translateX(5px);
}

.tocSubitem {
  margin-top: 8px;
  padding-left: 15px;
}

.relatedPostsList {
  list-style: none;
}

.relatedPostItem {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.relatedPostItem:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.relatedPostLink {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: $text-ash;
  transition: color 0.3s ease;
}

.relatedPostLink:hover {
  color: $accent-fire;
}

.relatedPostThumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.relatedPostInfo {
  flex-grow: 1;
}

.relatedPostTitle {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 5px;
}

.relatedPostDate {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Social grid for contact page */
.socialGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 1.5rem;
}

.socialItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 15px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
}

.socialItem:hover {
  background-color: rgba(255, 100, 0, 0.1);
  transform: translateY(-5px);
}

.socialIconLg {
  font-size: 1.8rem;
  color: $accent-fire;
}

.socialName {
  color: $text-ash;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 992px) {
  .pageTitle {
    font-size: 2.5rem;
  }

  .timeline:before {
    left: 2rem;
  }

  .timelineItem:nth-child(odd) .timeline-content,
  .timelineItem:nth-child(even) .timeline-content {
    width: calc(100% - 3rem);
    margin-left: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .timelineDot {
    left: 2rem;
  }
}

@media (max-width: 768px) {
  .pageTitle {
    font-size: 2rem;
  }

  .introText {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .pageTitle {
    font-size: 1.8rem;
  }

  .sectionTitle {
    font-size: 1.8rem;
  }

  .testimonialAuthor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .authorInfo {
    margin-top: 1rem;
    text-align: center;
  }
}