.cv-page {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #f9f9f9;
  color: #333;
  transition: right 0.5s ease;
  overflow-y: auto;
  z-index: 9999;
  background: url('../assets/japan1.jpg') no-repeat center center;
  background-size: cover;
  
  overflow-x: hidden;
}

.cv-page.show {
  right: 0;
}

.cv-container {
  max-width: 900px;
  margin: 2rem auto;
  /* padding: 2rem 3rem; */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
  z-index: 3;
  /* backdrop-filter: blur(6px); */
}

.closeCV {
  position: absolute; /* stick to screen */
  top: 10px;
  left: 10px;
  background: rgba(185, 185, 185, 0.75); /* glass effect */
  backdrop-filter: blur(15px);
  border-radius: 35px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 1001; /* above the hidden page content */
  /* padding: 10px 15px; */
  color: #363942;
  border: none;
  cursor: pointer;
  height: 45px;
  width: 150px;

  /* Text styling to match mini-navbar */
  border: none;
  outline: none;
  font: inherit;       /* inherit font-family, size, weight */
  text-decoration: none;
  line-height: normal;  /* match links */
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
  color: #363942;
  font-size: 1rem;

  /* Animation */
  opacity: 0;
  transform: translateY(-20px);
  animation: navBarfadeInMini 1s ease forwards;
  animation-delay: 0.5s; /* appear slightly after hidden page slides in */
  transition: all 0.3s ease;
}
.closeCV:hover {
  background: rgba(55, 55, 55, 0.25);
  color: #000;
  transform: translateY(-2px);
}

@keyframes navBarfadeInMini {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cv-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.cvskills {
    width: 100%;
}
.languages {
    width: 100%;
}
.hobbies {
    width: 100%;
}
.social-media {
    width: 100%;
}

/* Left Column */
.cv-left {
  background: #f0f4f8;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cv-left h2 {
  margin-top: 1rem;
  font-size: 1.6rem;
  margin-bottom: 0px !important;
  color: #222;
}

.cv-left .title {
  font-size: 1rem;
  color: #666;
  margin: 0px !important;
}

.profile-pic {
    width: 70%;
    height: auto;
}

.profile-pic img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #222;
}

.cv-left h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #222;
}

.cv-left p, .cv-left ul {
  font-size: 0.95rem;
  color: #555;
  margin: 0.3rem 0;
}

.cv-left ul {
  list-style: none;
  padding: 0;
}

.cv-left ul li {
  background: #e1e5ea;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  text-align: center;
}

/* Right Column */
.cv-right h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  color: #444;
}

.cv-item {
  margin-bottom: 1.5rem;
}

.cv-item h3 {
  font-size: 1.2rem;
  color: #222;
}

.cv-item h3 span {
  font-weight: normal;
  color: #888;
}

.date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.cv-item ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.cv-item ul li {
  margin-bottom: 0.5rem;
}

.cv-download {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.download-btn {
  background: #f1f2f3;
  color: #222;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #3de35c;
}

.extra {
    font-size: small;
    line-height: 1.2;
}

@media (max-width: 850px) {

   .cv-container {
    margin: 1rem;
    padding: 1rem;
  }

  .cv-grid {
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 1rem;
  }

  .cv-left, .cv-right {
    width: 100%;
    padding: 1rem;
  }

  .profile-pic img {
    width: 100px;
    height: 100px;
  }

  .cv-left h2 {
    font-size: 1.4rem;
  }

  .cv-left h3, .cv-left p, .cv-left ul li {
    font-size: 0.9rem;
  }

  .cv-right h2 {
    font-size: 1.3rem;
  }

  .cv-item h3 {
    font-size: 1.1rem;
  }

  .date {
    font-size: 0.8rem;
  }

  .cv-download .download-btn {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  .cv-page {
    background-size: cover;
    background-position: top center;
    /* overflow-y: hidden; */
  }

  .closeCV {
    position: absolute; /* stick to screen */
    top: 10px;
    left: 10px;
    background: rgba(185, 185, 185, 0.75); /* glass effect */
    backdrop-filter: blur(15px);
    border-radius: 35px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    z-index: 1001; /* above the hidden page content */
    padding: 10px 10px;
    width: auto;
    color: #363942;
    border: none;
    cursor: pointer;
    height: 35px;
    font-size: 0.8rem;

    /* Text styling to match mini-navbar */
    border: none;
    outline: none;
    font: inherit;       /* inherit font-family, size, weight */
    text-decoration: none;
    line-height: normal;  /* match links */
    letter-spacing: normal;
    text-align: center;
    cursor: pointer;
    color: #363942;

    /* Animation */
    opacity: 0;
    transform: translateY(-20px);
    animation: navBarfadeInMini 1s ease forwards;
    animation-delay: 0.5s; /* appear slightly after hidden page slides in */
    transition: all 0.3s ease;
  }

  #cvText {
    display: none;
  }

  
}