.lang-toggle {
  position: fixed;
  top: 20px;
  right: 80px;
  z-index: 9999;
  display: inline-block;
  width: 73px;
  height: 34px;
  border-radius: 34px; /* match toggle height for fully rounded ends */
  background-color: #444;

  /* Rounded shadow */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s;
}

.lang-toggle:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}



.lang-toggle input {
  display: none; /* hide checkbox */
}

.slider {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #444;  /* dark background */
  border-radius: 34px;
  padding: 0 6px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 27px;
  width: 27px;
  background-color: #0e573f; /* green slider */
  border-radius: 50%;
  border:2px solid white;
  top: 2px;
  left: 3px;
  transition: transform 0.3s, background-color 0.3s;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.lang-label {
  position: relative;
  z-index: 3;
  font-size: 12px;
  font-weight: bold;
  color: #bbb; /* inactive color */
  user-select: none;
}

.lang-en { margin-left: 4px; }
.lang-jp { margin-right: 4px; }

/* When JP is active */
.lang-toggle input:checked + .slider::before {
  transform: translateX(36px); /* moves slider circle */
}

.lang-toggle input:checked + .slider .lang-jp {
  color: #bbb; /* inactive */
}

.lang-toggle input:checked + .slider .lang-en {
  color: white; /* active */
}

/* When EN is active */
.lang-toggle input:not(:checked) + .slider .lang-jp {
  color: white; /* active */
}

.lang-toggle input:not(:checked) + .slider .lang-en {
  color: #bbb; /* inactive */
}


.exp-chart {
  width: 250px;          /* desktop size */
  height: 250px;
  position: absolute;
  right: 20px;
  top: 40px;
}

/* Mobile: full width, static position */
@media (max-width: 900px) {
  .exp-chart {
    position: static;
    width: 90%;
    height: 300px;        /* maintain aspect ratio */
    margin: 20px auto;
  }
}





/* ===== LIST ===== */
ul li{
  margin:8px 0;
  transition:.2s;
}

ul li:hover{
  transform:translateX(6px);
  color:#065f46;
}

/* ===== CENTER ===== */
.center{text-align:center;}

/* ===== FADE IN ===== */
.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:1s;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* ===== PROJECT SECTION ===== */

.projects-title{
  font-size:28px;
  font-weight:700;
  border-bottom:2px solid #d1d5db;
  padding-bottom:12px;
  margin-bottom:25px;
}

.projects-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:25px;
}

/* ===== CATEGORY ===== */

.project-category{
  border:1px solid #d1d5db;
  background:#e8f7e9;
  padding:15px;
  border-radius: 10px;
}

.project-category b{
  font-size:18px;
}

/* ===== ITEM ROW ===== */

.project-item{
  display:grid;
  grid-template-columns:50px 1fr;
  gap:12px;
  align-items:center;
  background:#f3f4f6;
  border:1px solid #d1d5db;
  padding:12px;
  margin-top:12px;
  border-radius:12px;
}
/* .project-item :hover{
  border:1px solid #ffffff;
} */

.project-item img{
  max-width:32px;
}

.project-item a{
  font-weight:600;
  color:#2563eb;
  text-decoration:none;
  font-size:16px;
}

.project-item a:hover{
  text-decoration:underline;
}

.project-item p,
.project-item div{
  margin:4px 0 0;
  font-size:14px;
  color:#374151;
}


/* ===== RESPONSIVE ===== */

@media(max-width:900px){
  .projects-grid{
    grid-template-columns:1fr;
  }
}

summary.clickable {
  cursor: pointer;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

summary {
  cursor: pointer;
  list-style: none;
  color:#2563eb;
}

summary::before {
  content: " ➕";
}

details[open] summary::before {
  content: " ➖";
}

.smooth-details summary {
  cursor: pointer;
  list-style: none;
}

/* Remove default arrow */
.smooth-details summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
.smooth-details summary::after {
  content: " 👈";
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.smooth-details[open] summary::after {
  transform: rotate(-90deg);
}

/* Smooth content animation */
.smooth-details .content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}


.smooth-details[open] .content {
  max-height: 500px; /* adjust if needed */
}
