/* About Me Section Layout */
.about-me-container {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 20px;
}

.portrait-section {
  flex: 0 0 300px; /* Fixed width for portrait */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
}

.portrait-placeholder {
  position: relative;
  width: clamp(185px, 20vw, 245px);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(160deg, rgba(10, 16, 32, 0.92), rgba(8, 14, 28, 0.65));
  box-shadow: 0 24px 48px rgba(4, 8, 18, 0.55), 0 0 0 1px rgba(154, 209, 255, 0.15) inset;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 30% 20%, rgba(90, 165, 255, 0.38), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(141, 92, 255, 0.35), transparent 60%);
  filter: blur(35px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.portrait-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(154, 209, 255, 0.22);
  box-shadow: inset 0 0 20px rgba(51, 124, 255, 0.12);
  z-index: 1;
  pointer-events: none;
}

.portrait-placeholder img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(26px - 10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portrait-placeholder:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(4, 8, 18, 0.65), 0 0 0 1px rgba(154, 209, 255, 0.22) inset;
}

.portrait-placeholder:hover img {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.text-section {
  flex: 1;
  min-width: 0; /* Allows flex item to shrink below content size */
}

.fadein-container {
  max-width: 800px;
  text-align: left;
  line-height: 1.8;
  font-size: 1.25rem;
}

.extracurricular-section {
  margin-top: 30px;
  width: 100%;
}

.extracurricular-section .fadein-container {
  max-width: none;
  width: 100%;
}


.fadein {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards;
}

.fadein:nth-child(1) { animation-delay: 0.2s; }
.fadein:nth-child(2) { animation-delay: 0.6s; }
.fadein:nth-child(3) { animation-delay: 1.0s; }
.fadein:nth-child(4) { animation-delay: 1.4s; }
.fadein:nth-child(5) { animation-delay: 1.8s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Roles Section Layout */
.roles-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 0;
  padding-left: 0;
  position: relative;
}

.roles-container::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, 
    rgba(26, 13, 51, 0.15), 
    rgba(15, 23, 42, 0.15), 
    rgba(26, 13, 51, 0.15));
  pointer-events: none;
  z-index: 0;
}

.ngos-container {
  position: relative;
  z-index: 1;
}

.role-item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 0;
}

.role-image-section {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}

.role-title {
  background: linear-gradient(to right, #2563eb, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  margin: 0;
  font-weight: bold;
}

.role-text {
  flex: 1;
  min-width: 0;
}

.role-text ul {
  list-style-type: none;
  padding-left: 0;
}

.role-text ul li {
  margin-bottom: 2px;
  padding-left: 20px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.8;
}

.role-text ul li::before {
  content: "•";
  color: #9ad1ff;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
}

body main .roles-container .role-text .fadein-container {
  line-height: 1.8;
}

.role-text .fadein-container {
  line-height: 1.8;
}

.role-text .fadein {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}


.role-image {
  flex: 0 0 500px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
}

.role-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  max-height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.role-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(154, 209, 255, 0.3);
}

/* Responsive design for About Me section */
@media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .portrait-section {
    flex: none;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  
  .portrait-placeholder {
    width: min(200px, 65vw);
    margin: 0 auto;
  }
  
  .text-section {
    width: 100%;
    max-width: 100%;
  }

  .role-item {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  
  .role-image-section {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .role-title {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .role-image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .pdf-viewer-wrapper {
    height: 500px;
  }

  .ngo-video-wrapper {
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio on mobile */
  }
}

/* Documents Header */
.documents-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px !important;
  overflow: visible;
  position: relative;
}

.collapse-button {
  background: none !important;
  border: none !important;
  color: #e0aaff !important;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  z-index: 10;
  position: relative;
}

.collapse-button span {
  color: #e0aaff;
  display: block;
}

.collapse-button:hover span {
  color: #c77dff;
}

.collapse-button:hover {
  background: none !important;
  transform: scale(1.1);
}

.collapse-button.rotated {
  transform: rotate(180deg);
}

.collapse-button.rotated span {
  color: #e0aaff;
}

.collapse-button.rotated:hover span {
  color: #c77dff;
}

.documents-list.collapsed {
  display: none;
}

/* NGO Section */
.ngos-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.ngo-video-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.ngo-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.ngo-description {
  width: 100%;
}

.ngo-description .fadein-container {
  max-width: 100% !important;
  width: 100%;
}

/* Google Drive Folder Viewer */
.pdf-viewer-container {
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-viewer-wrapper {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.305);
}

.drive-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: rgba(106, 90, 205, 0.15);
}

/* Documents List */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.documents-list::-webkit-scrollbar {
  width: 8px;
}

.documents-list::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.3);
  border-radius: 4px;
}

.documents-list::-webkit-scrollbar-thumb {
  background: rgba(154, 209, 255, 0.5);
  border-radius: 4px;
}

.documents-list::-webkit-scrollbar-thumb:hover {
  background: rgba(154, 209, 255, 0.7);
}

.document-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(30, 30, 30, 0.6);
  border: 2px solid rgba(154, 209, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: #f0f0f0;
  transition: all 0.3s ease;
}

.document-item:hover {
  background: rgba(30, 30, 30, 0.9);
  border-color: #9ad1ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(154, 209, 255, 0.2);
}

.document-item i {
  font-size: 1.5rem;
  color: #ef4444;
}

.document-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

