/* skill bar */

.skill {
  margin: 20px 0;
}

.skill span {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.skill-bar {
    width: 400px;           
    background-color: #ddd;
    height: 10px;
    border-radius: 3px;
    overflow: visible;      
    position: relative;
}

.skill-fill {
  height: 100%;
  background-color: #4caf50;
  border-radius: 3px;
}

.skill-marker {
  position: absolute;
  top: -25px;            
  display: block;          
  transform: translateX(-50%); 
  font-weight: bold;
  background-color: white;
  color: rgb(136, 129, 121);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Navbar styling */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  color: white;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* resume button */
.resume-button {
  display: inline-block;
  padding: 25px 60px;
  background-color: #1f2937; 
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.resume-button:hover {
  background-color: #374151; 
}

/* Project */

.project-card {
  width: 300px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}


/* EDUCATION */

  body {
    overflow-x: hidden; 
  }

  #education {
    text-align: center;
    padding: 50px 20px;
    background: #f4f0ea;
  }

  .bookshelf {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px; /* more spacing for bigger books */
    padding: 40px;
    background: #d4b996;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 5px solid #8d6e63;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .book {
    width: 120px;   
    height: 360px; 
    background: linear-gradient(160deg, #5d4037, #3e2723);
    color: #f4e1c6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Georgia", serif;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    box-shadow: inset 0 0 6px rgba(255,255,255,0.3), 0 6px 12px rgba(0,0,0,0.3);
    padding: 10px;
  }

  .book:hover {
    transform: translateY(-25px) rotate(-2deg);
    box-shadow: 0 14px 22px rgba(0,0,0,0.45);
  }

  /* Spine text vertical */
  .spine-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 16px;
    text-align: center;
  }


 .book-details {
  position: absolute;
  top: 0;
  right: 100%; 
  margin-right: 20px; 
  width: 400px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-20px); 
}

.book:hover .book-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

  .book-details h3 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
  }

  .book-details p {
    margin: 8px 0;
    font-size: 15px;
  }



  @media (max-width: 768px) {
    .book {
      width: 90px;
      height: 280px;
      font-size: 13px;
    }
    .book-details {
      width: 260px;
    }
  }

/* For expereinces divider */
.divider {
    width: 5px;           
    background-color: #8f1111;
    height: 200px;
    border-radius: 3px;
    overflow: visible;      
    position: relative;
    flex: 0, 0, auto;
}