/* Smooth scrolling */

/* Container for personality cards */
.personality-container {
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
  max-height: 2000px;
}

/* Transparent personality cards with hover effect */
.personality {
  background-color: rgba(255, 255, 255, 0.1); /* Transparent effect */
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Softer shadow */
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px); /* Glassmorphism effect */
  position: relative;
  z-index: 1;
}

.personality:hover {
  transform: scale(1.02); /* Subtle scale animation */
  background-color: rgba(255, 255, 255, 0.2); /* Slightly more opaque on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow */
}

/* Style for headings inside the personality cards */
.personality h2, .personality h3 {
  color: #00008B; /* -White- Blue color for text */
  /* text-shadow: 1px 1px 2px #ADD8E6; /* Add the -pink- light Blue color text shadow */
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.3s ease-in-out;
}

.personality h2:hover, .personality h3:hover {
  color: #ADD8E6; /* Change -pink- light Blue color on hover */
  text-shadow: 2px 2px 4px #ADD8E6; /* Slight glow effect on hover */
}

/* Animation for h2 heading */
.personality h2 {
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.personality h2:hover {
  transform: translateY(-3px); /* Slight lift on hover */
}

/* Pulse animation when hovered */
.personality h2:hover {
  animation: pulse 1s infinite; /* Subtle pulsing effect on hover */
}

/* Animation for sub-section headers */
.sub-section h3 {
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: 1rem;
  position: relative;
}

.sub-section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ADD8E6;
  transition: width 0.3s ease-in-out;
}

.sub-section h3:hover::after {
  width: 100%; /* Underline animation on hover */
}

.content {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Sub-section collapsible content */
.sub-section-content {
  max-height: 0;
  overflow: none;
  transition: max-height 0.3s ease-out, opacity 0.3s ease;
  opacity: 0; /* Fade effect when content is collapsed */
  padding-left: 1rem; /* Indentation for sub-sections */
}

.sub-section-content.open {
  opacity: 1;
}

.sub-section h3:hover ~ .sub-section-content {
  background-color: rgba(255, 255, 255, 0.05); /* Subtle background change when section opens */
}

/* General text styling */

/* Ensure the personality container can scroll when overflowed */
.personality-container::-webkit-scrollbar {
  width: 10px;
}

.personality-container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.personality-container::-webkit-scrollbar-thumb:hover {
  background-color: #ADD8E6;
}

.personality-container::-webkit-scrollbar-track {
  background-color: #2e2e2e;
}

/* Responsive media queries for smaller devices */
@media screen and (max-width: 768px) {
  .personality-container {
    padding: 1rem;
  }

  .personality h2 {
    font-size: 1.5rem;
  }
}