/* ================================
   Root Variables
================================= */
:root {
  --margin-page: 2em;
  --ui-primary: #222222;
  /* slightly lighter than black */
  --ui-secondary: #295cc1;
  /* primary theme color */
  --text-select--bg: #7d7373;
  /* selection background */
}

/* ================================
   Base Styles
================================= */
html {
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Chakra Petch", "Open Sans", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: var(--margin-page);
  color: var(--ui-primary);

  /* Ultra-light pastel rainbow */
  background: linear-gradient(120deg,
    #fff9f9, /* faint pink */
    #fffef9, /* faint yellow */
    #f9fff9, /* faint green */
    #f9fdff, /* faint blue */
    #fcf9ff  /* faint lavender */
  );
  background-size: 400% 400%;
  animation: pastelBreeze 25s ease infinite;
}

@keyframes pastelBreeze {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ================================
   Focus Styles for Accessibility
================================= */
:focus-visible {
  outline: 1px dotted;
  outline-offset: 0.1875em;
  border-radius: 1px;
  text-decoration: none;
}

/* ================================
   Utility Classes
================================= */
.cursor-pointer {
  cursor: pointer;
}

.contact-links i {
  line-height: unset;
}

/* ================================
   Profile Picture Styling
================================= */
.profile-picture-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc;
  transition: box-shadow 0.2s ease-in-out;
}

.profile-picture:hover {
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ================================
   Floating Animation
================================= */
@keyframes float {
  0%,
  100% {
    transform: translateY(5px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.float-animation {
  backface-visibility: hidden;
  animation: float 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .float-animation {
    animation: none;
  }
}

/* ================================
   Gradient Animation (Optional)
================================= */
@keyframes gradRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ================================
   Header Styles
================================= */
header.header {
  margin-bottom: 2em;
}

.name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5em 0;
}

.tagline {
  font-size: 1.125rem;
  margin-bottom: 1em;
}

/* ================================
   Navigation Icons
================================= */
.contact-links {
  font-size: 1.25rem;
  margin-top: 1em;
}

.contact-links i {
  margin: 0 0.5em;
  transition: color 0.3s ease;
}

.contact-links i:hover {
  color: var(--ui-secondary);
}

/* ================================
   Main Content
================================= */
main {
  max-width: 800px;
  margin: 0 auto;
}

main h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--ui-secondary);
}

main p {
  text-align: justify;
  margin-bottom: 1em;
}

.first-char {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1;
  font-family: "Georgia", serif;
}

.swiper-wrapper {
  margin-bottom: 2.5em;
}

/* ================================
   Blogs Section
================================= */
.blogs {
  max-width: 900px;
  margin: 0 auto;
}

.blog-swiper {
  padding-bottom: 2rem;
}

.swiper-wrapper {
  display: flex;
}

.blog-swiper-wrapper {
  margin-bottom: 1em;
}

.swiper-slide {
  width: 100%;
  justify-content: center;
}

.blog {
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
}

.blog img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
}

.blog-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}

.blog-description {
  font-size: 0.9rem;
  color: #555;
}

.quote {
  font-style: italic;
  font-size: 1rem;
  color: #333;
  flex-grow: 1;
  margin: 0.5rem 0;
}

.author {
  font-weight: 600;
  color: #555;
  text-align: right;
  margin-top: auto;
}

/* Swiper buttons */
.swiper-button-prev,
.swiper-button-next {
  color: #333;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
}

@media (max-width: 600px) {
  .swiper-slide {
    width: 100%;
  }
}
/* ================================
   Experience Section (Swiper Card Layout)
================================= */

.experience {
  max-width: 900px;
  margin: 0 auto;
}

.experience-swiper {
  padding-bottom: 2rem;
}

.experience-swiper-wrapper {
  margin-bottom: 1em;
}

.experience-card {
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
}

.experience-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
}

.experience-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.experience-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
}

.experience-description {
  font-size: 0.9rem;
  color: #555;
}

.experience-card .quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
  margin: 0.5rem 0;
}

.duration {
  font-weight: 600;
  color: #555;
  text-align: right;
  margin-top: auto;
}

/* Swiper buttons (reuse from Blogs) */
.experience-swiper .swiper-button-prev,
.experience-swiper .swiper-button-next {
  color: #333;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.experience-swiper .swiper-button-prev::after,
.experience-swiper .swiper-button-next::after {
  font-size: 16px;
}

@media (max-width: 600px) {
  .swiper-slide {
    width: 100%;
  }
}



/* ================================
   Games Section
================================= */
.games {
  max-width: 1100px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.game {
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

.game:hover {
  transform: translateY(-5px);
}

.game img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.game-title {
  font-weight: 700;
  font-size: 1rem;
  color: #222;
}

.game-description {
  font-size: 0.85rem;
  color: #555;
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   Blogs Section
================================= */

.education-list {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 2rem;
  justify-content: flex-start;
}

.education-item {
  max-width: 100%;
  min-width: 0;
  border-radius: 0.5em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--ui-secondary, #4a4e69); /* Match testimonial style */
  padding: 1.5em 1.5em 1.5em 1.2em;
}

.education-title {
  font-family: "Chakra Petch", "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #22223b;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.education-institution {
  font-size: 1rem;
  color: #4a4e69;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.education-duration {
  font-size: 0.95rem;
  color: #7c7c7c;
  margin-bottom: 0.75rem;
}

.education-highlights {
  list-style: disc inside;
  padding-left: 0.5rem;
  color: #22223b;
  font-size: 0.98rem;
  margin-bottom: 0;
}

.education-highlights li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .education-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .education-item {
    max-width: 100%;
    min-width: 0;
  }
}

/* ================================
   Experience Section (Card Style)
================================= */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: flex-start;
}

.experience-item {
  background: #fff;
  border-radius: 0.5em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--ui-secondary, #4a4e69);
  padding: 1.5em 1.5em 1.5em 1.2em;
}

.experience-title {
  font-family: "Chakra Petch", "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #22223b;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.experience-location {
  font-size: 1rem;
  color: #4a4e69;
  margin-bottom: 1rem;
  font-weight: 500;
}

.role-entry {
  margin-bottom: 1rem;
}

.role-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4a4e69;
  margin-bottom: 0.5rem;
}

.role-title span {
  font-weight: normal;
  font-size: 0.9rem;
  color: #888;
  margin-left: 0.5rem;
}

.experience-highlights {
  list-style: none;
  padding-left: 0;
  color: #22223b;
  font-size: 0.98rem;
  margin: 0;
}

.experience-highlights li::before {
  content: "– ";
  color: #4a4e69;
}

.experience-highlights li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .experience-list {
    gap: 1.5rem;
  }
}

/* ================================
   Pill Styles (Neutral / Dark Theme)
================================= */
.pill {
  display: inline-block;
  padding: 0.35em 0.75em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ui-primary); /* dark text */
  background-color: #e0e0e0; /* light gray background */
  border: 1px solid #c4c4c4;
  border-radius: 999px;
  margin: 0.25em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pill:hover {
  background-color: #d5d5d5;
  color: var(--ui-primary);
  outline: none;
  cursor: pointer;
}

/* ================================
   Awards & Recognition Section
================================= */

.awards-carousel-wrapper {
  overflow: hidden;
  margin-top: 1em;
}

.awards-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.awards-carousel::-webkit-scrollbar {
  display: none;
}

.awards-carousel {
  scrollbar-width: none;
}

.awards-item {
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;

  border-left: 4px solid var(--ui-secondary);
  padding: 1em;
  border-radius: 0.5em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.awards-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.awards-organization,
.awards-year {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.25em;
}

.awards-highlights {
  font-size: 0.95rem;
  margin-top: 0.5em;
  text-align: left;
}

/* ================================
   Footer Styles
================================= */
footer.footnote {
  margin-top: 3em;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

.signature {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2em;
}

/* ================================
   Responsive Design (Optional)
================================= */
@media (max-width: 640px) {
  .name {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .contact-links {
    font-size: 1rem;
    flex-wrap: wrap;
  }
}
