.zen-old-mincho-regular {
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

@font-face {
    font-family: "Comico";
    src: url("font/Comico-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}
.m-plus-rounded-1c-regular {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: lighter;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}

/* BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;

  background: 
    /* Lớp 1: Tâm sáng màu vàng/trắng ở giữa hơi lệch phải */
    radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 244, 208, 0.5) 20%, transparent 60%),
    /* Lớp 2: Quầng sáng màu cam hồng hoàng hôn */
    radial-gradient(circle at 55% 45%, #FFB37C 0%, #E2B6FF 40%, transparent 70%),
    /* Lớp 3: Nền xanh bầu trời chủ đạo */
    linear-gradient(135deg, #6385FB 0%, #8DA4FF 50%, #AEC0FF 100%);

  transform-origin: center;
  background-blend-mode: screen, normal, normal;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 100px;
   font-family: "Comico";
   color: white;
}

#startBtn {
  padding: 16px 40px;
  border-radius: 999px;
  color: white;
  letter-spacing: 2px;

 
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,.2);

  background:rgba(255,255,255,.15);
 box-shadow:
        0 8px 32px rgba(0,0,0,.15),
        inset 0 1px 1px rgba(255,255,255,.4);
        margin-top: 0;
  transition: .4s ease;
  cursor: pointer;
}

#startBtn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #ffe3cf ;
}

/* PLANE */
#plane {
  width: 200px;
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

/* JOURNEY */
.journey {
  min-height: 6000px;
  position: relative;
  z-index: 2;
}

/* WIND EFFECT */
.wind {
  position: fixed;
  pointer-events: none;
  z-index: 1;

  width: 600px;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.9),
    transparent
  );

  filter: blur(1px);
  opacity: .4;
}


/* PLANE WRAP */
.plane-wrap {
  position: fixed;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

/* TRAIL */
.trail {
  position: absolute;
  width: 12px;
  height: 250px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.9),
    rgba(255,255,255,.3),
    transparent
  );

  filter: blur(4px);
  border-radius: 999px;
}

/* TEXT */
h3 {
  font-size: 50px;
  color: white;
   font-family: "Comico";
   font-weight: 500;
   text-shadow: 0 4px 16px #0f0c1e;
}

.flight-space {
  height: 40vh;
}

/* PANEL */
.panel {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 35vh;
}

.panel.left {
  width: 50%;
  margin-left: 5%;
}

.panel.right {
  width: 50%;
  margin-left: auto;
  margin-right: 5%;
  text-align: right;
}

#about,
#education,
#skills {
  opacity: 0;
}

.about-title {
  margin-bottom: 30px;
}

#about p {
  color: #2A2550;
}

.skill-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.certification {
  color: #172554;
   font-family: "Zen Old Mincho", serif;
}

.cert-item{
    opacity:0;
     transform:translateX(-40px);
}

/* TIMELINE */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 50px;
   font-family: "M PLUS Rounded 1c", sans-serif;
}


.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #9B7FB6, #4B446A);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-date {
   color:#9B7FB6;
    font-size:15px;
  
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 1.5rem;
 color:#4B446A;
  margin: 0 0 8px 0;
  font-weight: lighter;
}

.timeline-content p {
  font-size: 0.95rem;
  color: rgba(42, 37, 80, 0.75);
  line-height: 1.6;
}

/* BLACKHOLE TRIGGER */
#blackhole-trigger {
  width: 100%;
  height: 260vh;
  position: relative;
  z-index: 1;
  visibility: hidden;
}

/* PROJECTS - CHÍNH */
#projects {
  width: 100%;
  height: 150vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  margin: 0;
  text-align: center;
  background: linear-gradient(135deg, #0f0c1e 0%, #1a1530 50%, #2a1d4a 100%);
    overflow: hidden;
    font-family: "M PLUS Rounded 1c", sans-serif;
}

#projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99, 133, 251, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(76, 29, 149, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.project-track {
  display:flex;
    gap:100px;
    justify-content:flex-start;
    align-items: center;
  width: 100%;
  padding: 110px 0 90px 0;
  position: relative;
  z-index: 1;
}

.project-card {
  width: 560px;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 18px;
  flex-shrink: 0;
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 10px 40px rgba(0,0,0,0);
  transition: box-shadow .3s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-title {
  position: relative;
  z-index: 1;
  font-size: 50px;
  color: white;
  margin: -50px 0 60px 0;
}

/* ===== PROJECT MODAL STYLES ===== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 30, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 10001;
  width: 92%;
  max-width: 1100px;
  background: linear-gradient(135deg, rgba(20, 15, 40, 0.98) 0%, rgba(30, 20, 50, 0.98) 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(99, 133, 251, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10002;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(99, 133, 251, 0.2);
  border: 1px solid rgba(99, 133, 251, 0.4);
  color: #8DA4FF;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  font-weight: bold;
}

.modal-close:hover {
  background: rgba(99, 133, 251, 0.4);
  border-color: rgba(99, 133, 251, 0.8);
  transform: rotate(90deg);
  box-shadow: 0 8px 24px rgba(99, 133, 251, 0.3);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modal-title {
  font-size: 40px;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.modal-description {
  font-size: 18px;
  color: #D0D0E8;
  line-height: 1.9;
  margin: 0 0 10px 0;
  
}

.modal-tech {
  margin-bottom: 32px;
}

.modal-tech h4 {
  font-size: 14px;
  color: #8DA4FF;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px 0;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #6385FB 0%, #8DA4FF 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  
}

.modal-link {
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 28px;
  background:rgba(255,255,255,.15);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 300;
  transition: 0.3s ease;
  align-self: flex-start;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   box-shadow:
        0 8px 32px rgba(0,0,0,.15),
        inset 0 1px 1px rgba(255,255,255,.4);
        margin-top: 0;
}

.modal-link:hover {
   background:rgba(255,255,255,.25);
    transform:translateY(-3px);
}

/* ===== GALLERY WRAPPER ===== */
.modal-left {
  display: flex;
  flex-direction: column;
}

.modal-gallery-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  background: rgba(0,0,0,0.2);
  user-select: none;
}

.modal-gallery {
  display: flex;
  will-change: transform;
}

.gallery-img {
  flex: 0 0 100%;
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* Prev / Next buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(141, 164, 255, 0.5);
  background: rgba(15, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  color: #AEC0FF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.gallery-btn:hover {
  background: rgba(99, 133, 251, 0.45);
  border-color: rgba(141, 164, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }

/* Dots */
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.gallery-dot.active {
  background: #8DA4FF;
  transform: scale(1.3);
}

/* Counter */
.gallery-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(15,12,30,0.55);
  backdrop-filter: blur(6px);
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
  z-index: 10;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .gallery-img {
    height: 220px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-description {
    font-size: 14px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

/* Responsive Panel */
@media (max-width: 768px) {
  .hero-title {
    font-size: 50px;
  }

  .panel {
    padding-top: 25vh;
  }

  .panel.left,
  .panel.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    padding: 0 5%;
  }

  .project-card {
    width: 280px;
    height: 380px;
  }
}