:root {
  --primary-color: #480048;
  --secondary-color: #7b4397;
  --accent-color: #ff9a56;
  --text-light: #ffffff;
  --text-muted: #e0d6e9;
  --card-bg: rgba(255, 255, 255, 0.1);
}

body {
  overflow-x: hidden;
}

.profile-name {
  margin-top: 15px;
}

.moonlight-container {
  display: flex;
  font-family: 'Arial', sans-serif;
  height: 100vh;
  position: relative;
  z-index: 1000;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
  /* Ẩn thanh scroll mặc định */
  margin-top: 80px;
  max-width: 100vw;

}

.moonlight-menu {
  width: 250px;
  background-color: var(--primary-color);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-align: center;
  /* Ngăn menu co lại */
}

.menu-header {
  color: var(--text-light);
}

.moonlight-menu ul li a {
  display: inline-block;
  padding: 10px;
  color: var(--text-muted);
  width: 100%;
}

.moonlight-menu li a:hover,
.moonlight-menu li a.active {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-footer {
  color: var(--text-muted);
}


.moonlight-carousel {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  /* Thêm dòng này */
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  min-width: 0;
  /* Thêm dòng này */
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background-color: var(--primary-color);
}

/* Các phần CSS trước giữ nguyên */

/* About Section */
.about-container {
  display: flex;
  height: 100%;
  padding: 40px;
}

.about-content {
  flex: 1;
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-muted);
}

.about-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  max-width: 100%;
  max-height: 100vh;
  border-radius: 10px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Skills Section */
.skills-container {
  padding: 40px;
  height: 100%;
}

.skills-container h2 {
  text-align: center;
  font-size: 2rem;
  margin: 15px 0;
  color: var(--text-light);
}

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

.skill-category {
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.skill-category ul {
  list-style-type: none;
  padding: 0;
}

.skill-category li {
  padding: 8px 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Projects Section */
.projects-container {
  height: 100%;
}

.projects-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  margin-top: 15px;
  color: var(--text-light);
}

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

.project-item {
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.project-item h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.project-item p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-item strong {
  color: var(--text-light);
}

/* Contact Section */
.contact-container {
  display: flex;
  height: 100%;
  padding: 40px;
}

.contact-info {
  flex: 1;
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-container h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-light);
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.icon {
  font-size: 1.5rem;
  margin-right: 15px;
  min-width: 30px;
}

.contact-form {
  flex: 1;
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent-color);
  color: #333;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #ff8c42;
}

/* Home Section */
.home-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.home-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.read-more:hover {
  background: #ff8c42;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}
.about-content-mobile {
  display: none
}

/* ==================== MEDIA QUERIES ==================== */
/* Tablet and larger (768px and up) */

/* Desktop (992px and up) */
@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .about-container {
    flex-direction: row;
    padding: 40px;
  }

  .about-content {
    flex: 1;
    padding-right: 40px;
    order: 1;
  }

  .about-image {
    flex: 1;
    order: 2;
    margin-bottom: 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container {
    flex-direction: row;
    padding: 40px;
  }

  .contact-info {
    flex: 1;
    padding-right: 40px;
    order: 1;
    margin-top: 0;
  }

  .contact-form {
    flex: 1;
    order: 2;
  }
}

/* Small mobile devices (576px and below) */
@media screen and (max-width: 575px) {
  .moonlight-container {
    margin-top: 50px;
    height: auto;
  }
  .moonlight-container .about-content-mobile {display: block}
  .moonlight-container .about-content-mobile h2{
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .moonlight-menu{width: 100%;}
  .moonlight-container .about-content-mobile p{
    font-size: 14px;
  }
  .moonlight-carousel,
  .moonlight-menu ul {
    display: none;
  }

  .carousel-track {
    display: none;
  }
}