/* ==========================================================================
   Page-Specific Styles
   Extracted from inline <style> blocks for better caching & performance.
   ========================================================================== */

/* --------------------------------------------------------------------------
   About Me Page
   -------------------------------------------------------------------------- */

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4em 0;
  background: rgba(46, 52, 80, 0.75);
  border-radius: 10px;
  margin: 2em auto;
  max-width: 90%;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 2em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2em;
  line-height: 1.8;
}

.journey-section {
  background: rgba(46, 52, 80, 0.75);
  padding: 3em;
  border-radius: 10px;
  margin: 2em auto;
  max-width: 90%;
}

.journey-section h2 {
  color: #9bf1ff;
  margin-bottom: 1.5em;
  text-align: center;
}

.education-section {
  background: rgba(46, 52, 80, 0.75);
  padding: 3em;
  border-radius: 10px;
  margin: 2em auto;
  max-width: 90%;
}

.education-section h2 {
  color: #9bf1ff;
  margin-bottom: 1.5em;
  text-align: center;
}

.education-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 1.5em;
  transition: transform 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.education-card h3 {
  color: #9bf1ff;
  margin-bottom: 0.5em;
}

.achievements {
  background: rgba(46, 52, 80, 0.75);
  padding: 3em;
  border-radius: 10px;
  margin: 2em auto;
  max-width: 90%;
}

.achievements h2 {
  color: #9bf1ff;
  margin-bottom: 1.5em;
  text-align: center;
}

.achievements ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
}

.achievements li {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5em;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.achievements li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.highlight-text {
  color: #9bf1ff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Experience Page
   -------------------------------------------------------------------------- */

.experience-header {
  background: rgba(46, 52, 80, 0.75);
  padding: 4em 2em;
  border-radius: 10px;
  margin: 2em auto;
  max-width: 90%;
  text-align: center;
}

.experience-intro {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-card {
  background: rgba(46, 52, 80, 0.75);
  border-radius: 10px;
  padding: 2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6fc3df, #9bf1ff);
}

.experience-icon {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #9bf1ff;
}

.experience-title {
  color: #ffffff;
  font-size: 1.5em;
  margin-bottom: 1em;
  font-weight: 600;
}

.experience-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  flex-grow: 1;
}

.experience-skills {
  margin-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.skill-tag {
  background: rgba(155, 241, 255, 0.1);
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.8em;
  color: #9bf1ff;
  transition: background-color 0.3s ease;
}

.skill-tag:hover {
  background: rgba(155, 241, 255, 0.2);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 2em auto;
  padding: 2em;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: rgba(155, 241, 255, 0.2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

/* --------------------------------------------------------------------------
   Interests Page
   -------------------------------------------------------------------------- */

.fas {
  margin-bottom: 0.5em;
  color: #9bf1ff;
}

/* --------------------------------------------------------------------------
   Research Page
   -------------------------------------------------------------------------- */

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding: 2em;
}

.research-item {
  background: rgba(46, 52, 80, 0.75);
  border-radius: 8px;
  padding: 2em;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.research-item:hover {
  transform: translateY(-5px);
  background: rgba(46, 52, 80, 0.85);
}

.research-icon {
  font-size: 2em;
  margin-bottom: 1em;
  color: #9bf1ff;
}

.research-meta {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1em;
}

.tag {
  background: rgba(155, 241, 255, 0.1);
  padding: 0.3em 1em;
  border-radius: 1em;
  font-size: 0.8em;
  color: #9bf1ff;
}

.spotlight {
  background: rgba(46, 52, 80, 0.75);
  margin: 2em 0;
  padding: 2em;
  border-radius: 8px;
}

.spotlight:hover {
  background: rgba(46, 52, 80, 0.85);
}

/* --------------------------------------------------------------------------
   Responsive Overrides
   -------------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
  /* About Me */
  .profile-section,
  .journey-section,
  .education-section,
  .achievements {
    padding: 2em;
    margin: 1em auto;
  }

  .achievements ul {
    grid-template-columns: 1fr;
  }

  /* Experience */
  .experience-header {
    padding: 2em 1em;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    padding: 1em;
  }

  .timeline::after {
    left: 31px;
  }
}

@media screen and (max-width: 736px) {
  /* Research */
  .research-grid {
    grid-template-columns: 1fr;
    padding: 1em;
  }
}
