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

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;
  background: linear-gradient(rgba(81, 81, 82, 0.8), rgba(0, 0, 0, 0.7)), url('https://cdn.jsdelivr.net/gh/khenjiem/blog-background@80fe6e25801aeb62051e50457f8f358e6cfdb059/blog-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

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

.video-section-header h2 {
  color: white;
}

/* Main content styles */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 0;
}

main section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 40px 20px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

main section article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  max-width: 650px;
  margin: 0;
  padding: 0;
  text-align: left;
}

main section article h2 {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

main section article h1 {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 100px;
  text-transform: uppercase;
}

main section article button {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin-top: 100px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

main section article p {
  color: white !important;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 50px;
}

/* Isolation Container Card Styles */
.isolation-container {
  flex: 0 0 420px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  margin-top: 100px;
}

.isolation-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 420px;
}

.isolation-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
}

.card-header h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  margin-bottom: 25px;
}

.insight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.insight-item:last-child {
  border-bottom: none;
}

.metric {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.label {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
}

.card-footer {
  text-align: center;
}

.card-btn {
  background: linear-gradient(135deg, var(--secondary-color), #8b4e9b);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.card-btn:hover {
  background: linear-gradient(135deg, #8b4e9b, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 20, 139, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 30px 40px 20px;
  border-bottom: 2px solid var(--secondary-color);
  position: relative;
  background: linear-gradient(135deg, var(--secondary-color), #8b4e9b);
  color: white;
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  text-align: left;
}

.modal-header h2:after {
  display: none;
}

.close {
  position: absolute;
  right: 25px;
  top: 25px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.detail-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(106, 20, 139, 0.1);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.detail-card.full-width {
  grid-column: 1 / -1;
}

.detail-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), #8b4e9b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.detail-card h4 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), #8b4e9b);
  width: 0%;
  transition: width 2s ease-in-out;
  border-radius: 4px;
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: block;
}

.schedule {
  margin-bottom: 15px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
  border-bottom: none;
}

.day {
  font-weight: 600;
  color: var(--primary-color);
}

.time {
  color: var(--secondary-color);
  font-weight: 500;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.achievement-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 2px solid var(--secondary-color);
}

.achievement-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.achievement-label {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

.detail-text {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

.modal-footer {
  padding: 25px 40px 35px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.contact-btn {
  background: linear-gradient(135deg, var(--secondary-color), #8b4e9b);
  color: white;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #8b4e9b, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(106, 20, 139, 0.3);
}

.secondary-btn {
  background: #6c757d;
  color: white;
}

.secondary-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

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(
    90deg,
    rgba(146, 69, 176, 1) 0%,
    rgba(199, 195, 195, 1) 100%
  );
  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: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition);
}

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

.mission:before {
  content: '"';
  position: absolute;
  top: -25px;
  left: 20px;
  font-size: 5rem;
  color: rgba(142, 68, 173, 0.1);
  font-family: Georgia, serif;
}

/* 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: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white !important;
}

.education-career-title {
  color: white !important;
}

/* 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;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  main {
    padding: 20px 0;
  }

  main section {
    flex-direction: column;
    padding: 20px 10px;
    gap: 30px;
    align-items: center;
  }

  main section article {
    max-width: 100%;
    padding: 0 15px;
    order: 1;
  }

  main section article h1 {
    font-size: 2.2rem;
    margin-top: 50px;
    word-spacing: 10px;
  }

  main section article h2 {
    font-size: 2rem;
  }

  main section article p {
    font-size: 1.1rem;
    margin-top: 30px;
  }

  main section article button {
    margin-top: 50px;
  }

  .isolation-container {
    flex: none;
    width: 100%;
    order: 2;
    padding: 10px;
  }

  .isolation-card {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Modal Responsive Styles */
  .modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 85vh;
  }

  .modal-header {
    padding: 20px 25px 15px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
    padding-right: 50px;
  }

  .close {
    right: 15px;
    top: 15px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }

  .modal-body {
    padding: 25px 20px;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-card {
    padding: 20px;
  }

  .detail-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .detail-card h4 {
    font-size: 1.2rem;
  }

  .counter {
    font-size: 2rem;
  }

  .achievements {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .achievement-item {
    padding: 15px;
  }

  .achievement-number {
    font-size: 1.5rem;
  }

  .modal-footer {
    padding: 20px 25px;
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
    padding: 15px;
  }

  .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;
  }
}

@media (max-width: 576px) {
  body {
    background-attachment: scroll;
    background-size: cover;
    background-position: center top;
  }

  main {
    padding: 15px 0;
  }

  main section {
    flex-direction: column;
    padding: 15px 5px;
    gap: 25px;
  }

  main section article {
    padding: 0 10px;
    max-width: 100%;
    margin-top: 100px;
  }

  main section article h1 {
    font-size: 1.8rem;
    margin-top: 30px;
    word-spacing: 5px;
  }

  main section article h2 {
    font-size: 1.6rem;
  }

  main section article p {
    font-size: 1rem;
    margin-top: 20px;
    line-height: 1.6;
  }

  main section article button {
    margin-top: 30px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .isolation-container {
    padding: 5px;
  }

  .isolation-card {
    padding: 20px;
  }

  .card-header h3 {
    font-size: 1.2rem;
  }

  .card-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .metric {
    font-size: 1.5rem;
  }

  .label {
    font-size: 0.9rem;
  }

  .card-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Mobile Modal Styles */
  .modal-content {
    margin: 2% auto;
    width: 98%;
    max-height: 95vh;
    border-radius: 15px;
  }

  .modal-header {
    padding: 15px 20px 10px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
    padding-right: 45px;
  }

  .close {
    right: 10px;
    top: 10px;
    font-size: 1.3rem;
    width: 30px;
    height: 30px;
  }

  .modal-body {
    padding: 20px 15px;
  }

  .detail-card {
    padding: 15px;
  }

  .detail-icon {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .detail-card h4 {
    font-size: 1.1rem;
  }

  .counter {
    font-size: 1.8rem;
  }

  .achievements {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .achievement-item {
    padding: 12px;
  }

  .achievement-number {
    font-size: 1.3rem;
  }

  .achievement-label {
    font-size: 0.8rem;
  }

  .modal-footer {
    padding: 15px 20px;
  }

  .modal-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .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;
  }
}
