:root {
  --primary-color: #000000;
  --secondary-color: #6a148b;
  --text-color: #333;
  --background: #6a148b;
  --menu-background: #f8f8f8;
  --border-color: #eaeaea;
  --transition: all 0.3s ease;
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

/* About Section */
.about-section {
  position: relative;
}

.about-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(81, 81, 82, 0.8), rgba(0, 0, 0, 0.7)), url('https://cdn.jsdelivr.net/gh/khenjiem/blog-background/portfolio-wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.title-about {
  color: white;
}

.mission {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  border-left: 6px solid var(--secondary-color);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mission:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  border-left-width: 8px;
}

.mission:before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 25px;
  font-size: 6rem;
  color: rgba(106, 20, 139, 0.15);
  font-family: Georgia, serif;
  font-weight: bold;
}

.mission:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #8b1aa6, var(--secondary-color));
  border-radius: 20px 20px 0 0;
}

/* Timeline */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s forwards, floatingWave 3s ease-in-out infinite;
}

.timeline li:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  animation-play-state: paused;
}

.timeline li:nth-child(odd) {
  left: 0;
  border-left: 3px solid var(--secondary-color);
  animation-delay: 0.1s, 0s;
}

.timeline li:nth-child(even) {
  left: 50%;
  border-right: 3px solid var(--accent-color);
  animation-delay: 0.2s, 1.5s;
}

.timeline li:before {
  content: "";
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--secondary-color);
  z-index: 1;
}

.timeline li:nth-child(odd):before {
  right: -12px;
}

.timeline li:nth-child(even):before {
  left: -12px;
  border-color: var(--accent-color);
}

.timeline li .year {
  display: block;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.timeline li:nth-child(even) .year {
  color: var(--accent-color);
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.card-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.2);
  color: var(--secondary-color);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.card h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

.card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.education-career h5 {
  font-size: 1.2rem;
  margin-top: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white !important;
  text-align: center;
  margin-bottom: 20px;
}

.education-career-title {
  color: white !important;
  text-align: center;
  margin-top: 20px;
}

/* Education & Career Section Redesign */
.education-career-section {
  margin: 50px 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.profile-image-container {
  position: relative;
  flex-shrink: 0;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--secondary-color);
  box-shadow: 0 15px 35px rgba(106, 20, 139, 0.3);
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(106, 20, 139, 0.4);
}

.profile-image-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), #8b1aa6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  border: 6px solid var(--secondary-color);
  box-shadow: 0 15px 35px rgba(106, 20, 139, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-image-placeholder:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.profile-image-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(106, 20, 139, 0.4);
}

.profile-image-placeholder:hover:before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.profile-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--secondary-color), #8b1aa6);
  color: white;
  padding: 8px 12px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 5px 15px rgba(106, 20, 139, 0.4);
  animation: pulse 2s infinite;
}

.profile-info {
  flex: 1;
}

.profile-title {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
}

.profile-title:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #8b1aa6);
  border-radius: 2px;
}

.profile-name {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: capitalize;
}

.profile-role {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
  font-style: italic;
}

.profile-credentials {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.credential-badge {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.credential-badge:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(106, 20, 139, 0.1), transparent);
  transition: left 0.6s;
}

.credential-badge:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 20, 139, 0.3);
}

.credential-badge:hover:before {
  left: 100%;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatingWave {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-4px);
  }
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}
.card:nth-child(5) {
  animation-delay: 0.5s;
}
.card:nth-child(6) {
  animation-delay: 0.6s;
}
.card:nth-child(7) {
  animation-delay: 0.7s;
}

/* Timeline floating wave variations */
.timeline li:nth-child(3n) {
  animation-duration: 0.6s, 3.5s;
}
.timeline li:nth-child(4n) {
  animation-duration: 0.6s, 4s;
}
.timeline li:nth-child(5n) {
  animation-duration: 0.6s, 2.5s;
}

/* Responsive Design */
@media (max-width: 992px) {
  .timeline-container {
    padding: 0 20px;
  }

  .timeline-container:before {
    left: 30px;
  }

  .timeline li {
    width: calc(100% - 60px);
    left: 0 !important;
    padding: 20px 25px 20px 60px;
    margin-left: 0;
    margin-right: 0;
    border-left: 3px solid var(--secondary-color) !important;
    border-right: none !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .timeline li:nth-child(odd):before,
  .timeline li:nth-child(even):before {
    left: 20px;
    right: auto;
    border-color: var(--secondary-color) !important;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .profile-image-placeholder {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .timeline-container {
    padding: 0 15px;
  }

  h2 {
    font-size: 2.2rem;
  }

  section {
    padding: 60px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .mission {
    padding: 20px;
    font-size: 1.1rem;
  }

  .timeline li {
    width: calc(100% - 50px);
    padding: 15px 20px 15px 50px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .education-career-section {
    padding: 30px 20px;
  }

  .profile-title {
    font-size: 1.8rem;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .profile-role {
    font-size: 1.1rem;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .profile-image-placeholder {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }

  .credential-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }

  .timeline-container {
    padding: 0 10px;
  }

  .timeline-container:before {
    left: 20px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .timeline li {
    width: calc(100% - 40px);
    padding: 12px 15px 12px 40px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .timeline li:before {
    top: 15px;
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .timeline li:nth-child(odd):before,
  .timeline li:nth-child(even):before {
    left: 13px;
  }

  .mission {
    font-size: 1rem;
    padding: 15px;
  }

  .education-career-section {
    padding: 20px 15px;
  }

  .profile-title {
    font-size: 1.5rem;
  }

  .profile-name {
    font-size: 1.3rem;
  }

  .profile-role {
    font-size: 1rem;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .profile-image-placeholder {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .profile-badge {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .credential-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}
