
html {
  font-size: 20px; /* increase base font size (default is ~16px) */
  scroll-behavior: smooth; /* smooth scrolling for anchor links */
  background: radial-gradient(circle at 18% 14%, rgba(58, 42, 114, 0.28), transparent 40%), radial-gradient(circle at 80% 10%, rgba(20, 40, 82, 0.24), transparent 44%), linear-gradient(140deg, #000103 0%, #03060d 45%, #0b142b 72%, #160d33 100%) !important;
  background-color: #000103;
  background-attachment: fixed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 18% 14%, rgba(58, 42, 114, 0.28), transparent 40%), radial-gradient(circle at 80% 10%, rgba(20, 40, 82, 0.24), transparent 44%), linear-gradient(140deg, #000103 0%, #03060d 45%, #0b142b 72%, #160d33 100%);
  background-attachment: fixed;
    color: #f0f0f0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  }
  

  .star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    mix-blend-mode: screen;
  }

  .star-field .star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 8px rgba(175, 216, 255, 0.6);
    opacity: 0.65;
    animation: star-float var(--float-duration, 14s) ease-in-out infinite,
               star-twinkle var(--twinkle-duration, 4.5s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s), var(--twinkle-delay, 0s);
    will-change: transform, opacity;
  }

  .star-field .star:nth-child(1)  { top: 4%;  left: 14%;  --float-duration: 16s; --float-delay: -2s;  --twinkle-duration: 4.6s; --twinkle-delay: -1.2s; }
  .star-field .star:nth-child(2)  { top: 9%;  left: 48%;  --float-duration: 13.5s; --float-delay: -4.5s; --twinkle-duration: 4s;  --twinkle-delay: -2.4s; }
  .star-field .star:nth-child(3)  { top: 6%;  left: 76%;  --float-duration: 15s; --float-delay: -3s;  --twinkle-duration: 3.8s; --twinkle-delay: -1.6s; }
  .star-field .star:nth-child(4)  { top: 12%; left: 28%;  --float-duration: 18s; --float-delay: -5s;  --twinkle-duration: 4.4s; --twinkle-delay: -0.8s; }
  .star-field .star:nth-child(5)  { top: 18%; left: 62%;  --float-duration: 14s; --float-delay: -6s;  --twinkle-duration: 3.9s; --twinkle-delay: -2.7s; }
  .star-field .star:nth-child(6)  { top: 22%; left: 10%;  --float-duration: 17s; --float-delay: -7.4s; --twinkle-duration: 4.2s; --twinkle-delay: -1.1s; }
  .star-field .star:nth-child(7)  { top: 26%; left: 84%;  --float-duration: 12.5s; --float-delay: -3.5s; --twinkle-duration: 3.6s; --twinkle-delay: -3.1s; }
  .star-field .star:nth-child(8)  { top: 30%; left: 36%;  --float-duration: 16.5s; --float-delay: -8s;  --twinkle-duration: 4.8s; --twinkle-delay: -1.5s; }
  .star-field .star:nth-child(9)  { top: 34%; left: 58%;  --float-duration: 13s; --float-delay: -2.8s; --twinkle-duration: 4.1s; --twinkle-delay: -0.9s; }
  .star-field .star:nth-child(10) { top: 38%; left: 91%;  --float-duration: 15.5s; --float-delay: -6.5s; --twinkle-duration: 4.7s; --twinkle-delay: -2.3s; }
  .star-field .star:nth-child(11) { top: 42%; left: 20%;  --float-duration: 14.2s; --float-delay: -5.4s; --twinkle-duration: 3.7s; --twinkle-delay: -1.9s; }
  .star-field .star:nth-child(12) { top: 45%; left: 70%;  --float-duration: 17.2s; --float-delay: -9s;  --twinkle-duration: 4.3s; --twinkle-delay: -0.6s; }
  .star-field .star:nth-child(13) { top: 48%; left: 4%;   --float-duration: 12s; --float-delay: -3.7s; --twinkle-duration: 3.5s; --twinkle-delay: -2.8s; }
  .star-field .star:nth-child(14) { top: 52%; left: 42%;  --float-duration: 18s; --float-delay: -10.5s;--twinkle-duration: 4.9s; --twinkle-delay: -1.3s; }
  .star-field .star:nth-child(15) { top: 55%; left: 82%;  --float-duration: 14.8s; --float-delay: -7.6s; --twinkle-duration: 4.2s; --twinkle-delay: -0.7s; }
  .star-field .star:nth-child(16) { top: 58%; left: 30%;  --float-duration: 13.4s; --float-delay: -4.1s; --twinkle-duration: 3.6s; --twinkle-delay: -2s; }
  .star-field .star:nth-child(17) { top: 62%; left: 52%;  --float-duration: 17.5s; --float-delay: -9.8s; --twinkle-duration: 4.5s; --twinkle-delay: -3.3s; }
  .star-field .star:nth-child(18) { top: 65%; left: 94%;  --float-duration: 12.8s; --float-delay: -1.9s; --twinkle-duration: 3.8s; --twinkle-delay: -1.4s; }
  .star-field .star:nth-child(19) { top: 68%; left: 8%;   --float-duration: 16.2s; --float-delay: -6.9s; --twinkle-duration: 4.4s; --twinkle-delay: -2.6s; }
  .star-field .star:nth-child(20) { top: 72%; left: 40%;  --float-duration: 13.7s; --float-delay: -2.2s; --twinkle-duration: 3.9s; --twinkle-delay: -0.5s; }
  .star-field .star:nth-child(21) { top: 76%; left: 68%;  --float-duration: 15.3s; --float-delay: -8.5s; --twinkle-duration: 4.1s; --twinkle-delay: -2.1s; }
  .star-field .star:nth-child(22) { top: 80%; left: 16%;  --float-duration: 12.4s; --float-delay: -5.9s; --twinkle-duration: 3.7s; --twinkle-delay: -0.6s; }
  .star-field .star:nth-child(23) { top: 83%; left: 48%;  --float-duration: 17.8s; --float-delay: -7.2s; --twinkle-duration: 4.6s; --twinkle-delay: -3.5s; }
  .star-field .star:nth-child(24) { top: 86%; left: 88%;  --float-duration: 13.1s; --float-delay: -2.4s; --twinkle-duration: 3.8s; --twinkle-delay: -1.8s; }
  .star-field .star:nth-child(25) { top: 90%; left: 32%;  --float-duration: 16.6s; --float-delay: -9.1s; --twinkle-duration: 4.5s; --twinkle-delay: -0.9s; }
  .star-field .star:nth-child(26) { top: 8%;  left: 6%;   --float-duration: 14.4s; --float-delay: -1.7s; --twinkle-duration: 3.9s; --twinkle-delay: -2.9s; }
  .star-field .star:nth-child(27) { top: 14%; left: 54%;  --float-duration: 12.6s; --float-delay: -6.3s; --twinkle-duration: 3.5s; --twinkle-delay: -1.1s; }
  .star-field .star:nth-child(28) { top: 20%; left: 92%;  --float-duration: 18.2s; --float-delay: -8.9s; --twinkle-duration: 4.7s; --twinkle-delay: -0.4s; }
  .star-field .star:nth-child(29) { top: 24%; left: 24%;  --float-duration: 15.2s; --float-delay: -4.8s; --twinkle-duration: 4.3s; --twinkle-delay: -2.2s; }
  .star-field .star:nth-child(30) { top: 28%; left: 44%;  --float-duration: 13.9s; --float-delay: -7.8s; --twinkle-duration: 3.6s; --twinkle-delay: -3.4s; }
  .star-field .star:nth-child(31) { top: 32%; left: 74%;  --float-duration: 17.1s; --float-delay: -5.1s; --twinkle-duration: 4.5s; --twinkle-delay: -1.7s; }
  .star-field .star:nth-child(32) { top: 36%; left: 12%;  --float-duration: 12.2s; --float-delay: -2.6s; --twinkle-duration: 3.7s; --twinkle-delay: -0.3s; }
  .star-field .star:nth-child(33) { top: 40%; left: 64%;  --float-duration: 16.4s; --float-delay: -9.6s; --twinkle-duration: 4.2s; --twinkle-delay: -2.5s; }
  .star-field .star:nth-child(34) { top: 44%; left: 96%;  --float-duration: 14.1s; --float-delay: -1.3s; --twinkle-duration: 3.8s; --twinkle-delay: -3s; }
  .star-field .star:nth-child(35) { top: 50%; left: 50%;  --float-duration: 15.9s; --float-delay: -7.1s; --twinkle-duration: 4.6s; --twinkle-delay: -1.4s; }
  .star-field .star:nth-child(36) { top: 60%; left: 26%;  --float-duration: 12.9s; --float-delay: -5.6s; --twinkle-duration: 3.5s; --twinkle-delay: -0.7s; }
  .star-field .star:nth-child(37) { top: 64%; left: 76%;  --float-duration: 17.6s; --float-delay: -10.8s;--twinkle-duration: 4.3s; --twinkle-delay: -2.9s; }
  .star-field .star:nth-child(38) { top: 70%; left: 18%;  --float-duration: 13.3s; --float-delay: -3.3s; --twinkle-duration: 3.9s; --twinkle-delay: -1.5s; }
  .star-field .star:nth-child(39) { top: 74%; left: 58%;  --float-duration: 16.8s; --float-delay: -6.2s; --twinkle-duration: 4.4s; --twinkle-delay: -0.2s; }
  .star-field .star:nth-child(40) { top: 88%; left: 72%;  --float-duration: 12.7s; --float-delay: -8.7s; --twinkle-duration: 3.6s; --twinkle-delay: -2.4s; }

  @keyframes star-float {
    0% {
      transform: translate3d(0, 12px, 0);
    }
    50% {
      transform: translate3d(0, -12px, 0);
    }
    100% {
      transform: translate3d(0, 12px, 0);
    }
  }

  @keyframes star-twinkle {
    0%, 100% {
      opacity: 0.2;
    }
    50% {
      opacity: 0.85;
    }
  }

  /* Page entrance animation */
  .page-fade {
    opacity: 0;
    transform: translateY(24px);
    animation: page-fade-in 0.8s ease-out forwards;
    background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
  }

  @keyframes page-fade-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
    transform: none;
    }
  }
  
  /* Header Navigation */
header.site-header {
    width: 100%;
  background: linear-gradient(135deg, rgba(4, 6, 18, 0.92) 0%, rgba(9, 18, 36, 0.9) 48%, rgba(18, 32, 52, 0.88) 100%) !important;
  background-color: rgba(4, 6, 18, 0.92);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  }
  
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #00526e 0%, #2b3587 40%, #4e208a 70%, #1f7f64 100%);
  box-shadow: 0 0 10px rgba(31, 127, 100, 0.45);
  border-radius: 999px;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

  
  header h1 {
    font-size: 22px;
    color: #fff;
  }
  
  nav a {
    color: #ccc;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, background 0.3s;
    padding: 6px 12px;
    border-radius: 6px;
  }
  
  nav a:hover {
    color: #9ad1ff;
  }

  nav a.current-page {
    background: linear-gradient(135deg, #2563eb, #60a5fa, #a78bfa);
    color: #0a0a0a;
    font-weight: 700;
  }

  nav a.current-page:hover {
    color: #0a0a0a;
    background: linear-gradient(135deg, #3b82f6, #7c9eff, #b794f6);
  }
  
  /* Page Sections */
  main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: none;       /* remove dark background */
    border-radius: 0;       /* remove rounded box look */
    box-shadow: none;       /* remove shadow border */
    position: relative;
    z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  }
  
  
  h2 {
    margin-bottom: 20px;
    background: linear-gradient(to right, #2563eb, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  p {
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .typewriter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .typewriter {
    font-family: Arial, sans-serif; /* matches rest of page */
    font-size: 18px;
    color: #f0f0f0;
  }
  
.achievements-button-container {
  margin-top: 30px;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}
  
  .achievements-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #2563eb, #60a5fa, #a78bfa);
    color: #0a0a0a;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, background;
  }
  
  .achievements-button:hover {
    color: #0a0a0a;
    background: linear-gradient(135deg, #3b82f6, #7c9eff, #b794f6);
  transform: translateZ(0) translateY(-2px);
  }
  
.education-section {
  margin-bottom: 48px;
}

.education-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(8, 14, 32, 0.95);
  border: 1px solid rgba(154, 209, 255, 0.18);
  box-shadow: 0 24px 60px rgba(4, 8, 18, 0.55),
              0 0 0 1px rgba(58, 42, 114, 0.3),
              0 0 40px rgba(58, 42, 114, 0.2),
              0 0 80px rgba(20, 40, 82, 0.15);
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.education-card:hover {
  box-shadow: 0 24px 60px rgba(4, 8, 18, 0.75),
              0 0 0 1px rgba(58, 42, 114, 0.4),
              0 0 60px rgba(58, 42, 114, 0.3),
              0 0 100px rgba(20, 40, 82, 0.2);
  border-color: rgba(154, 209, 255, 0.3);
}

.education-card::after {
  content: '';
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(82, 140, 255, 0.18), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(56, 239, 125, 0.12), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.education-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #e2e8f0;
}

.education-card__body h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f8fbff;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Poppins', Arial, sans-serif;
}

.education-card__body h3 span {
  font-size: 1.05rem;
  font-weight: 500;
  color: #7dd3fc;
  margin-left: 10px;
  text-transform: none;
  letter-spacing: normal;
}

.education-card__meta {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(203, 214, 230, 0.7);
}

.education-card__ib-logo {
  width: 72px;
  height: auto;
  vertical-align: middle;
  margin-left: 8px;
  display: inline-block;
}

.education-card__summary,
.education-card__ib {
  line-height: 1.7;
  font-size: 1.05rem;
}

.education-card__summary {
  color: #cbd5f5;
  margin-bottom: 15px;
}

.education-card__summary-highlight {
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 8px;
}

.education-card__ib strong {
  color: #9ad1ff;
  font-weight: 600;
}

.education-card__aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
  min-width: 220px;
}

.education-card__years {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e0f2fe;
  margin: 0;
}

.education-card__location {
  font-size: 0.95rem;
  color: rgba(203, 214, 230, 0.8);
  margin: 0;
}

.education-card__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.education-card__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(12, 24, 46, 0.7);
  border: 1px solid rgba(86, 142, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  min-width: 0;
}

.education-card__stat--highlight {
  padding: 12px 16px;
  background: rgba(12, 24, 46, 0.75);
  border-color: rgba(56, 239, 125, 0.3);
}

.education-card__stat:not(.education-card__stat--highlight) {
  padding: 12px 16px;
  margin: 0;
}

.education-card__stat span:first-child {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(203, 214, 230, 0.85);
  flex: 1;
  min-width: 0;
  text-align: left;
}

.education-card__stat span:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: #9ad1ff;
  flex-shrink: 0;
  white-space: nowrap;
}

.education-card__stat--highlight span:last-child {
  color: #38ef7d;
  text-shadow: 0 0 12px rgba(56, 239, 125, 0.35);
}

.education-card__stat--highlight span:first-child {
  color: rgba(203, 214, 230, 0.9);
}

.education-section + h2 {
  margin-top: 48px;
}

@media (max-width: 768px) {
  .education-card {
    padding: 20px 22px;
  }

  .education-card__meta {
    letter-spacing: 0.05em;
  }

  .education-card__aside {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .education-card__stat {
    align-items: center;
  }

  .education-card__stat span:first-child {
    text-align: left;
  }

  .education-card__stat span:last-child {
    text-align: right;
  }
}

  .hero-title {
    display: flex;
    flex-direction: column; /* stack children vertically */
    justify-content: center;
    align-items: center;
    height: auto;
    text-align: center;
    padding: 80px 20px 30px;
  }
  
  
  .hero-title h1 {
    font-size: 3rem; /* big title */
    background: linear-gradient(to right, #2563eb, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: Arial, sans-serif;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.7));
  }
  
  .hero-description {
    font-size: 1.25rem;
    color: #f0f0f0;
    font-family: Arial, sans-serif;
    margin-top: 15px;
    opacity: 0; /* start invisible */
    animation: fadeIn 2s ease forwards;
    animation-delay: 1s; /* starts fading in after 1 second */
  }
  
  .hero-social-icons {
    opacity: 0; /* start invisible */
    animation: fadeIn 2s ease forwards;
    animation-delay: 1.5s; /* starts fading in after 1.5 seconds */
    margin-top: 20px;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .scroll-arrow {
    font-size: 2.5rem; /* size of the arrow */
    color: #9ad1ff;
    margin-top: 20px;
    animation: bounce 2s infinite ease-in-out;
  }
  
  /* Bouncing animation */
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); } /* moves down 15px at midpoint */
  }
  
  .award {
    position: relative;
    background: rgba(30, 30, 30, 0.85);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: background 0.3s ease, transform 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: background, transform;
  isolation: isolate;
  }

  .award > * {
    position: relative;
    z-index: 1;
  }

  .award::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, #00526e 0%, #2b3587 40%, #4e208a 70%, #1f7f64 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
  }

  .award::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(30, 30, 30, 0.85);
    pointer-events: none;
    z-index: -1;
  }

  .award:hover::after {
    background: rgba(30, 30, 30, 0.9);
  }

  @keyframes outlinePulse {
    0%, 100% {
      opacity: 0.7;
    }
    50% {
      opacity: 1;
    }
  }

  .award:hover {
    background: rgba(30, 30, 30, 0.9);
    transform: translateZ(0) translateY(-2px);
  }

  .award:hover::before {
    opacity: 1;
    animation: outlinePulse 3s ease-in-out infinite;
  }
  
  .award h3 {
    background: linear-gradient(to right, #2563eb, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
  }
  
  .award p {
    margin: 4px 0;
  color: #f5f7fb;
  }

.award p:first-of-type {
  color: #ffffff;
}

.award p:first-of-type strong {
  color: #ffffff;
}

.award p strong {
  color: #ffffff;
}
  
  .award ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style-type: disc;
  }

.award ul li {
  color: #f5f7fb;
}

.award-highlight {
  color: #ffd166;
  font-weight: 600;
}
  
  .award-logo {
    position: absolute;
    top: 15px;   /* distance from top of the card */
    right: 15px; /* distance from right edge */
    width: 50px; /* adjust size as needed */
    height: auto;
    border-radius: 8px; /* rounded corners */
    transition: transform 0.3s ease, width 0.3s ease; /* smooth transition */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  }

/* Enlarge slightly on hover */
.award-logo:hover {
  transform: translateZ(0) scale(1.3); /* 30% bigger */
}

/* Make logos responsive on smaller screens */
@media (max-width: 768px) {
  .award-logo {
    width: 40px; /* smaller on mobile */
  }
}

@media (max-width: 480px) {
  .award-logo {
    width: 30px; /* even smaller on very small screens */
  }
}

  
/* Projects layout */
.projects-page {
  min-height: 100vh;
  padding: 5rem 2rem;

  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

/* grid: 2 columns on desktop, 1 on small screens */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* project card */
.project-card {
  background: linear-gradient(180deg, rgba(20,28,38,0.9), rgba(12,16,22,0.85));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 26px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(12, 16, 22, 0.6);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0) translateX(0) translateY(0);
  will-change: box-shadow, transform;
  isolation: isolate;
}

/* 3D tilt effect - handled by JavaScript */
.project-card:hover {
  box-shadow: 0 18px 48px rgba(8,12,20,0.7);
  transform: translateZ(0) translateX(0) translateY(-2px);
}

/* top row: title and small repo icon */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-code {
  color: #9ad1ff;
  font-weight: 700;
  font-size: 1.2rem;
  background: rgba(154,209,255,0.06);
  padding: 6px 8px;
  border-radius: 6px;
}

/* small repo icon top-right */
.repo-icon {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: background 0.18s ease, transform 0.18s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: background, transform;
}
.repo-icon:hover { background: rgba(255,255,255,0.03); transform: translateZ(0) translateY(-3px); }

/* description & features */
.project-desc {
  color: #d6dee8;
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-features {
  margin: 8px 0 14px 18px;
  color: #cbd6e6;
}

.project-features li {
  margin-bottom: 8px;
}

/* tags */
.tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* tag base */
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #06121a;
  background: #cfdbe7;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}
.tag:hover { transform: translateZ(0) translateY(-4px); }

/* tag color variants */
.tag.blue    { background: #cfe9ff; color: #042635; }
.tag.blue-dark { background: #d3f2ff; color: #042635; }
.tag.purple  { background: #e6d9ff; color: #24103b; }
.tag.purple-dark { background: #f0dbff; color:#2d063f;}
.tag.teal    { background: #dff6f2; color: #062b28; }
.tag.green   { background: #d6f7e6; color: #06321f; }
.tag.green-dark {background:#bff0c8; color:#042b16; }
.tag.cyan    { background: #d9f0ff; color: #042033; }
.tag.pink    { background: #ffd7f0; color: #2b0326; }
.tag.mint    { background:#dffcf2; color:#052a21; }
.tag.lime    { background:#fff7d0; color:#3a3400; }
.tag.olive   { background:#f1f4da; color:#2a2b07; }

/* responsive */
@media (max-width: 992px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-page { padding: 18px; }
}

/* smaller screens tweaks */
@media (max-width: 480px) {
  .project-card { padding: 18px; border-radius: 12px; }
  .section-title { font-size: 1.25rem; }
}

.footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.social-icons a {
  color: white;
  font-size: 32px;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #00bcd4; /* teal highlight */
  transform: scale(1.2);
}


/* Gallery Page */

.gallery-main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: rgba(18, 24, 39, 0.75);
  border: 1px solid rgba(154, 209, 255, 0.25);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(5, 10, 30, 0.45);
}

.gallery-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #cbd6e6;
  background: rgba(12, 18, 32, 0.65);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
}

.gallery-tab-button:hover,
.gallery-tab-button:focus-visible {
  color: #f8fbff;
  border-color: rgba(154, 209, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(82, 140, 255, 0.35);
  outline: none;
}

.gallery-tab-button.active {
  color: #0a0a0a;
  background: linear-gradient(135deg, #2563eb, #60a5fa, #a78bfa);
  border-color: rgba(154, 209, 255, 0.65);
  box-shadow: 0 18px 38px rgba(56, 129, 212, 0.45);
}

.gallery-panel {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: gallery-panel-fade 0.6s ease forwards;
}

.gallery-panel.active {
  display: flex;
}

@keyframes gallery-panel-fade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-panel-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-panel-description {
  color: #cbd6e6;
  font-size: 1.05rem;
  max-width: 60ch;
}

.gallery-panel-description a {
  color: inherit;
  text-decoration: underline;
}

.gallery,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
  align-items: start;
  justify-items: start;
}

.gallery {
  padding: 40px 80px;
}

.gallery-item {
  position: relative;
  display: flex;
  border-radius: 18px;
  background: rgba(20, 30, 45, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: background, box-shadow;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 500px;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: block;
  transition: filter 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.gallery-item:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 25px rgba(210, 220, 255, 0.45);
  z-index: 2;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  animation: fadeInScale 0.4s ease;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #b5b5ff;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Multi-Section Gallery Layout (Fixed Width Issue) ===== */
.gallery-sections {
  width: 100%;
  max-width: 1400px; /* controls total width on very large screens */
  margin: 0 auto;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 100px; /* space between sections */
}

.gallery-section {
  width: 100%;
}

.gallery-section-title {
  font-size: 2rem;
  color: #9ad1ff;
  margin-bottom: 25px;
  text-align: left; /* looks cleaner aligned left for large galleries */
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
  padding-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery,
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
  }
  .gallery-main {
    padding: 30px 20px 80px;
  }
  .gallery {
    padding: 32px 24px;
  }
}

@media (max-width: 600px) {
  .gallery,
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  .gallery {
    padding: 24px 16px;
  }
  .gallery-tabs {
    gap: 10px;
    padding: 12px;
  }
  .gallery-tab-button {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ===== Dropdown Menu Styling ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none !important;
  border: none !important;
  color: #ccc !important;
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 15px;
  margin: 0 15px;
  transition: color 0.3s, background 0.3s;
  border-radius: 6px;
}

.dropbtn:hover {
  color: #9ad1ff;
}

.dropbtn.current-page {
  background: linear-gradient(135deg, #2563eb, #60a5fa, #a78bfa) !important;
  color: #0a0a0a !important;
  font-weight: 700;
}

.dropbtn.current-page:hover {
  color: #0a0a0a !important;
  background: linear-gradient(135deg, #3b82f6, #7c9eff, #b794f6) !important;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(20, 20, 40, 0.95);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-radius: 8px;
  z-index: 10;
  top: 100%;
  left: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background-color: rgba(255,255,255,0.1);
  color: #9ad1ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== Awards Filter Styling ===== */
.filters-container {
  display: flex;
  gap: 30px;
  margin: 20px 0 30px 0;
  flex-wrap: wrap;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-container label {
  color: #9ad1ff;
  font-weight: bold;
  font-size: 1.1rem;
}

.year-filter {
  background: rgba(30, 30, 30, 0.85);
  color: #f0f0f0;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: border-color, box-shadow;
}

.year-filter:hover {
  border-color: #9ad1ff;
}

.year-filter:focus {
  outline: none;
  border-color: #9ad1ff;
  box-shadow: 0 0 10px rgba(154, 209, 255, 0.3);
}

.year-filter option {
  background: #1a1a1a;
  color: #f0f0f0;
}

.activity-filter {
  background: rgba(30, 30, 30, 0.85);
  color: #f0f0f0;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: border-color, box-shadow;
}

.activity-filter:hover {
  border-color: #9ad1ff;
}

.activity-filter:focus {
  outline: none;
  border-color: #9ad1ff;
  box-shadow: 0 0 10px rgba(154, 209, 255, 0.3);
}

.activity-filter option {
  background: #1a1a1a;
  color: #f0f0f0;
}

/* ===== Certifications 2-Column Layout ===== */
.certifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0;
}

.certification-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Reveal extra certificate details on hover */
.certifications-grid .award p:not(:first-of-type) {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.2s ease;
  margin: 0; /* override default margins when hidden */
}

.certifications-grid .award:hover p:not(:first-of-type) {
  max-height: 1000px; /* sufficiently large to show full content */
  opacity: 1;
  margin: 4px 0; /* restore spacing when visible */
}

/* Responsive design for certifications */
@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== Global Link Styling (Consistent Light Blue Underlined) ===== */
a,
a:visited,
a:hover,
a:active {
  color: #3881d4;          /* light blue */
  text-decoration: underline;  /* always underlined */
  transition: none;            /* no fade animations */
}

/* Project carousel */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: visible; /* allow arrows to show outside */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px; /* create space for arrows on sides */
}

.carousel-track-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
  isolation: isolate;
}

/* Each card takes full width */
.project-card {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

/* --- Arrows --- */
.arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  transition: color 0.3s ease, transform 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0) translateY(-50%);
  will-change: transform, color;
}

.arrow.left {
  left: 10px; /* small offset inside padded area */
}

.arrow.right {
  right: 10px;
}

.arrow:hover {
  color: #00bcd4;
  transform: translateZ(0) translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .carousel {
    padding: 0 30px;
  }
  .arrow {
    font-size: 2.2rem;
  }
}

/* Navigation dots styling */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: background-color, transform;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: translateZ(0) scale(1.1);
}

.dot.active {
  background-color: #9ad1ff;
  box-shadow: 0 0 10px rgba(154, 209, 255, 0.5);
  transform: translateZ(0) scale(1.2);
}


/* 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;
}

.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 */
}

/* Left-align only the fade-in text section */
.fadein-container {
  max-width: 800px;
  text-align: left;  /* ✅ left-aligns all fade-in text */
  line-height: 1.8;  /* nicer spacing for readability */
  font-size: 1.25rem; /* keeps text comfortably large */
}

/* Extracurricular section - full width, normal indentation */
.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;
}

.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;
}

/* Remove automatic fade-in for roles section, let JavaScript handle it */
.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;
}

.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%;
    justify-content: center;
  }
  
  .portrait-placeholder {
    width: min(200px, 65vw);
    margin: 0 auto;
  }
  
  .text-section {
    width: 100%;
  }

  /* Responsive design for Roles section */
  .role-item {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  
  .role-image-section {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

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

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

  .ngo-video-wrapper iframe {
    height: 300px;
  }
}

/* Documents Header with Collapse Button */
.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 Layout */
.ngos-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.ngo-video-wrapper {
  width: 100%;
  max-width: 100%;
}

.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 styling */
.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;
}