/* -------- Education section -------- */

.education-section {
  color: #f5f5f5;
  font-family: "Inter", "Arial", sans-serif;
  line-height: 1.6;
  text-align: left;
  margin: 0 auto;
  max-width: 700px;
}

.education-section h2 {
  font-size: 3em;
  text-align: center;
  color: #f5f5f5;
  margin-bottom: 10px;
  border-bottom: 6px solid #f1f1f1;
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}

.education-section h3 {
  color: #f5f5f5;
  margin-top: 25px;
  margin-bottom: 8px;
  font-weight: 600;
}

.education-section .degree {
  font-weight: bold;
  color: #ffffff;
  margin: 4px 0;
}

.education-section .grad-date {
  color: #b0b0b0;
  font-size: 0.95em;
}

.divider {
  border: none;
  border-bottom: 4px solid #f1f1f1;
  margin: 25px 0;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.course-tags span {
  background-color: #000000;
  color: #ffffff;
  padding: 6px 14px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.activities {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}

.activities li {
  margin-bottom: 8px;
  color: #f5f5f5;
  padding-left: 16px;
  position: relative;
}

.activities li::before {
  content: "•";
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
}

/* -------- Skills section -------- */

.skills-section {
  color: #f5f5f5;
  font-family: "Inter", "Arial", sans-serif;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

.skills-section h2 {
  font-size: 3em;
  color: #f5f5f5;
  margin-bottom: 20px;
  border-bottom: 6px solid #f1f1f1;
  display: inline-block;
  padding-bottom: 6px;
  letter-spacing: 0.5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.skill-category {
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

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

.skill-category h3 {
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 2px solid #ffffff;
  display: inline-block;
  padding-bottom: 4px;
}

.skill-category p {
  color: #f0f0f0;
  font-size: 1em;
  line-height: 1.6;
}

/* Orb cloud layout */
.skill-orb-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 10px 6px 20px 6px;
}

/* Orb base style */
.skill-orb {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 16px 20px;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  backdrop-filter: blur(6px);
  cursor: default;

  animation: orbFloat 4.5s ease-in-out infinite;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.skill-orb span {
  white-space: nowrap;
}

/* Different sizes for hierarchy */
.skill-orb.size-lg {
  padding: 22px 30px;
  font-size: 1.05rem;
}

.skill-orb.size-md {
  padding: 18px 24px;
}

.skill-orb.size-sm {
  padding: 12px 18px;
  font-size: 0.9rem;
}

/* Hover effect */
.skill-orb:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7), 0 14px 28px rgba(0, 0, 0, 0.8);
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.18)
  );
}

/* Floating animation */
@keyframes orbFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Slight variation on animation timing per orb */
.skill-orb:nth-child(2) {
  animation-duration: 5.2s;
  animation-delay: 0.1s;
}
.skill-orb:nth-child(3) {
  animation-duration: 4.2s;
  animation-delay: 0.2s;
}
.skill-orb:nth-child(4) {
  animation-duration: 5s;
  animation-delay: 0.3s;
}
.skill-orb:nth-child(5) {
  animation-duration: 4.6s;
  animation-delay: 0.15s;
}
.skill-orb:nth-child(6) {
  animation-duration: 5.4s;
  animation-delay: 0.25s;
}

/* Mobile tweaks */
@media (max-width: 700px) {
  .skill-orb-cloud {
    gap: 12px;
  }
  .skill-orb {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .skill-orb.size-lg {
    padding: 16px 22px;
    font-size: 0.98rem;
  }
}

/* -------- Projects section -------- */

.projects-section {
  color: #f5f5f5;
  font-family: "Inter", "Arial", sans-serif;
  line-height: 1.65;
  text-align: left;
  margin: 0 auto;
  max-width: 780px;
  max-height: 80vh;
  padding: 8px 6px 12px 6px;
}

.projects-section h2 {
  font-size: 2.8rem;
  text-align: center;
  color: #f5f5f5;
  margin: 6px 0 16px;
  border-bottom: 6px solid #f1f1f1;
  padding-bottom: 6px;
  letter-spacing: 0.4px;
}

/* Project card */
.project {
  margin: 18px 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.project:hover,
.project:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.project h3 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}

.project-date {
  display: block;
  color: #b8b8b8;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 10px 0;
}

.project p {
  color: #e6e6e6;
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 4px 0 0 0;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.project-links {
  margin-top: 10px;
}

.project-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 1px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.project-links a:hover {
  opacity: 0.75;
  border-color: #ffffff;
}

/* -------- Experience section -------- */

.experience-section {
  color: #f5f5f5;
  font-family: "Inter", "Arial", sans-serif;
  line-height: 1.65;
  text-align: left;
  margin: 0 auto;
  max-width: 780px;
  max-height: 80vh;
  padding-right: 10px;
}

.experience-section::-webkit-scrollbar {
  display: none;
}
.experience-section {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.experience-section h2 {
  font-size: 2.8rem;
  text-align: center;
  color: #f5f5f5;
  margin: 6px 0 16px;
  border-bottom: 6px solid #f1f1f1;
  padding-bottom: 6px;
  letter-spacing: 0.4px;
}

/* Each experience block */
.experience {
  margin-bottom: 28px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.experience:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Job title */
.experience h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

/* Organization and dates */
.experience .organization {
  color: #cccccc;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 2px;
}

/* Location line */
.experience .location {
  color: #a0a0a0;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Description bullets */
.experience ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.experience li {
  margin-bottom: 8px;
  color: #e6e6e6;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.experience li::before {
  content: "•";
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
}

/* --------About_Me---------------- */

.about-pillars {
  max-width: 780px;
  margin: 0 auto;
}

/* each section */
.about-pillar {
  margin-bottom: 26px;
}

/* label line: WHO I AM / WHERE I COME FROM / HOW I WORK */
.about-label {
  display: block;
  font-size: 1.05rem; /* bigger */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ffffff;
  margin-bottom: 6px;

  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 3px;
}

/* body text */
.about-pillar p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Mobile bottom padding for sections - placed at end to override base styles */
@media (max-width: 800px) {
  .education-section {
    padding-bottom: 60px;
  }

  .experience-section {
    max-height: none !important;
    margin-bottom: 100px;
    padding: 0 10px 40px 0;
  }

  .projects-section {
    max-height: none !important;
    margin-bottom: 100px;
    padding: 8px 6px 100px 6px;
  }
}
