/* === Theme Variables === */
:root {
  --bg-gradient: linear-gradient(270deg, #ff0000, #00ff00, #0000ff);
  --overlay-color: rgba(255, 255, 255, 0.85);
  --text-color: #222;
  --card-bg: #ffffff;
  --header-footer-bg: #f8f9fa;

  --member-open-bg: #ffffff;    /* default card */
  --member-obc-bg: #fff9d1;     /* light yellow */
  --member-womens-bg: #a5ffb4;  /* light green */
  --member-scst-bg: #76adff;    /* light blue */
  --muted-text-color: #6c757d;  /* light theme gray */
  --vision-gradient: linear-gradient(270deg, #fff9d1, #ffffff, #fff9d1);
  --mission-gradient: linear-gradient(270deg, #a5ffb4, #ffffff, #a5ffb4);
  --symbol-url: url("../images/background-light.png");

  --member-open-bg-t: rgba(255, 255, 255, 0.85);
  --member-obc-bg-t: rgba(255, 248, 106, 0.85);
  --member-womens-bg-t: rgba(119, 255, 142, 0.85);
  --member-scst-bg-t: rgba(118, 173, 255, 0.85);

  --bashi-opacity: 0.05;
  --modal-bashi-opacity: 0.25;

}

body.dark {
  --bg-gradient: linear-gradient(270deg, #ff0000, #800080, #0000ff);
  --overlay-color: rgba(0, 0, 0, 0.85);
  --text-color: #f1f1f1;
  --card-bg: #2a2a2a;
  --header-footer-bg: #1e1e1e;
  --member-open-bg: #2a2a2a;
  --member-obc-bg: #e4cd38;     
  --member-womens-bg: #1e6630;  
  --member-scst-bg: #1e3a66;    
  --muted-text-color: #adb5bd;  /* lighter gray for dark mode */
  --vision-gradient: linear-gradient(270deg, #4d4a2e, #2b2b2b, #4d4a2e);
  --mission-gradient: linear-gradient(270deg, #1e3d2a, #2b2b2b, #1e3d2a);  
  --bashi-opacity: 0.15;  
  --modal-bashi-opacity: 0.60;
  --symbol-url: url("../images/background-dark.png");
}

/* === Base Styles === */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-size: 600% 600%;
  animation: rgbShift 30s ease infinite;
  color: var(--text-color);
  min-height: 100vh;
  position: relative;
  z-index: 0;
  transition: color 0.3s ease, background 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--overlay-color);
  pointer-events: none;
  z-index: -1;
}

/* === Keyframes === */
@keyframes rgbShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Header & Footer === */
.site-header,
.site-footer {
  background-color: var(--header-footer-bg);
  transition: background-color 0.3s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}


/* === Hero Section === */
.hero-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  animation: fadeInUp 1s ease forwards;
}

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

/* === Sections === */
.section-alt {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
body.dark .section-alt {
  background-color: rgba(0, 0, 0, 0.4);
}

/* === Cards === */
.member-card, .project-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background-color: rgba(var(--bs-body-bg-rgb), 0.85); /* semi-transparent bg */
  color: var(--bs-body-color); /* keep theme text */
  transition: background-color 0.3s;
}

.member-card:hover, .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.member-card img.member-photo {
  width: 150px;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

/* === Project Cards === */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-content {
  padding: 1rem;
}

/* === Carousel === */
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 0.5rem 1rem;
}
body.dark .carousel-caption {
  background-color: rgba(255, 255, 255, 0.15);
}

/* === Lightbox Modal === */
#lightboxModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#lightboxModal img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

/* === Modals === */
.modal-content {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s, color 0.3s;
}

body.dark .modal-content {
  background-color: rgba(32, 32, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .btn-close {
  filter: invert(0);
}
body.dark .modal-header .btn-close {
  filter: invert(1);
}

/* Default: side-by-side layout */
.member-modal-body {
  display: flex;
  gap: 1rem;
}

.member-modal-body img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}

/* Mobile: stack vertically and center */
@media (max-width: 768px) {
  .member-modal-body {
    flex-direction: column;
  }

  .member-modal-body img {
    max-width: 90%;
    margin-bottom: 1rem;
  }
}

/* Color variations for member cards */
.member-card.open   { background-color: var(--member-open-bg-t); }
.member-card.obc    { background-color: var(--member-obc-bg-t); }
.member-card.women { background-color: var(--member-womens-bg-t); }
.member-card.scst   { background-color: var(--member-scst-bg-t); }
.member-card.nt {
  background-color: var(--member-scst-bg-t);
}

/* === Accordion Theming === */
.custom-accordion .accordion-item {
  background-color: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-color);
  border-radius: 8px;
  overflow: hidden;
}

.custom-accordion .accordion-header {
  background-color: transparent;
}

.custom-accordion .accordion-button {
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark .custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(255, 255, 255, 0.05);
}

.custom-accordion .accordion-body {
  background-color: transparent;
  color: var(--text-color);
}

.member-actions {
  display: flex;
  gap: 0.5rem;
}

.member-actions .emoji-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  color: #fff; /* text/emoji color */
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Filled themes */
.member-actions .emoji-btn.call {
  background-color: #0d6efd; /* bootstrap primary */
}
.member-actions .emoji-btn.whatsapp {
  background-color: #25D366; /* WhatsApp green */
}

/* Dark mode hover tweak */
.member-actions .emoji-btn:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.member-photo {
  width: 48px;               /* fixed square size */
  height: 48px;
  border-radius: 50%;        /* makes it round */
  object-fit: cover;         /* ensures the image fills without stretching */
  border: 2px solid var(--bs-border-color, #ccc);
  flex-shrink: 0;            /* prevents image from squishing in flexbox */
}

.content {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
.bold {
  font-weight: bold;
}

.member-details {
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-color);
  max-width: 600px;
}

.member-details p {
  margin-bottom: 0.8rem;
}

.member-details ul,
.member-details ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.member-details li {
  margin-bottom: 0.4rem;
}

.member-details h3,
.member-details h4 {
  margin-top: 1rem;
  font-weight: 600;
}

.member-details strong {
  font-weight: bold;
}

.member-details em {
  font-style: italic;
}

.panel-note,
.text-muted {
  color: var(--muted-text-color) !important;
}

/* Vision & Mission boxes */
.vision-box, .mission-box {
  background: var(--vision-gradient); /* overridden below */
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  border-radius: 1rem;
  padding: 2rem;
  color: var(--text-color);
}

/* Make mission use mission colors */
.mission-box {
  background: var(--mission-gradient);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.section-alt {
  position: relative;
  background: none;
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px; /* adjust size */
  height: 400px;
  background: var(--symbol-url) no-repeat center;
  background-size: contain;
  opacity: var(--bashi-opacity); /* transparency */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

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

/* Mobile: center align */
@media (max-width: 768px) {
  .section-alt h2,
  .section-alt p {
    text-align: center;
  }
}

.member-modal-body::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: var(--symbol-url) no-repeat center;
  background-size: contain;
  opacity: var(--bashi-opacity); /* still keep transparent */
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#membersContainer {
  position: relative;
  z-index: 1;
}

#membersContainer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--symbol-url) no-repeat center center;
  background-size: 280px; /* adjust size */
  background-attachment: fixed; /* sticky effect */
  opacity: 0.06; /* faded look, but only on image */
  z-index: -1; /* keeps watermark behind cards */
}

.member-card {
  background-color: var(--member-bg, var(--card-bg));
  background-color: color-mix(in srgb, var(--member-bg, var(--card-bg)) 85%, transparent); 
  backdrop-filter: blur(4px); /* optional */
}

.members-container {
  position: relative;
  background: url("your-symbol.png") no-repeat center center;
  background-size: 300px auto;
  opacity: 0.08; /* watermark feel */
  background-attachment: fixed; /* desktop */
}

/* On mobile (small screens) disable fixed background */
@media (max-width: 768px) {
  .members-container {
    background-attachment: scroll; /* fallback */
    background-position: center top; /* adjust placement */
    background-size: 200px auto; /* scale down for mobile */
  }
}

@media (max-width: 768px) {
  .member-modal-body::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 55%;
    width: 120px;
    height: 120px;
    background: var(--symbol-url) no-repeat center;
    background-size: contain;
    opacity: var(--modal-bashi-opacity);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
  }
}

.vision-symbol {
  display: block;            /* ensure it's visible */
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;       /* center + some spacing */
  background-image: var(--symbol-url);
  background-size: contain;  /* fit fully */
  background-repeat: no-repeat;
  background-position: center;
}

/* Tablet and above */
@media (min-width: 768px) {
  .vision-symbol {
    width: 150px;
    height: 150px;
  }
}

/* Desktop and above */
@media (min-width: 1200px) {
  .vision-symbol {
    width: 150px;
    height: 150px;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  font-size: 2rem;
  color: var(--bs-secondary); /* adapts to theme */
  animation: bounce 1.5s infinite;
  cursor: pointer;
  opacity: 0.8;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(8px);
  }
  60% {
    transform: translateX(-50%) translateY(4px);
  }
}

.scroll-indicator-inline {
  font-size: 2rem;
  color: var(--bs-primary);
  animation: bounce 1.5s infinite;
  opacity: 0.8;
}

.scroll-indicator-inline:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

.section-alt {
  position: relative;
  overflow: hidden;
}

.section-alt::before {
  content: "";
  position: absolute;
  top: 20px;            /* adjust vertical position */
  left: 50%;
  transform: translateX(-50%);
  width: 150px;         /* adjust size */
  height: 150px;
  background: var(--symbol-bg) no-repeat center center;
  background-size: contain;
  z-index: 1;           /* behind content but above section background */
  opacity: 1;           /* solid, not faded */
}

.section-alt .container {
  position: relative;
  z-index: 2;           /* ensures text stays above the symbol */
}

.victory-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #ff69b4, #ffc0cb, #ff69b4);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 10;
}

.marquee-content {
  display: inline-block;
  padding-left: 5%;
  animation: marqueeScroll 10s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}




