/* Enhanced Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #9333ea, #06b6d4);
  --secondary_gradient: linear-gradient(135deg, #06b6d4, #10b981);
  --accent-gradient: linear-gradient(135deg, #10b981, #f59e0b);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(147, 51, 234, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --bg-primary: #0a0a0a;
  --bg-secondary: rgba(10, 10, 10, 0.95);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  cursor: default !important;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-glow {
  position: fixed;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
  z-index: 9998;
  transition: transform 0.08s ease-out;
}

/* Enhanced Loader - Fixed Center Positioning */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #0d0d1c, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999;
  overflow: hidden;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
}

.droplet {
  width: 20px;
  height: 20px;
  background: #00cfff;
  border-radius: 50%;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: drop 2s ease-in-out forwards;
}

.ripple {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 204, 255, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s 1.2s ease-out forwards;
  opacity: 0;
}

.loader-text {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9); /* keeps center and shrink effect */

  opacity: 0;
  animation: textAppear 1s 2.3s forwards, textFadeOut 1s 4s forwards;
}


@keyframes drop {
  0% {
    top: 30%;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    top: 50%;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}
@keyframes textAppear {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes textFadeOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}


/* Enhanced Glass Navigation */
.glass-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 32px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  width: 90vw;
  max-width: 1000px;
  gap: 20px;
  transition: all 0.3s ease;
}

.glass-navbar.scrolled .glass-container {
  background: rgba(10, 10, 10, 0.9);
  border-color: rgba(147, 51, 234, 0.4);
}

.glass-logo {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gradient-logo {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bold-logo {
  color: var(--text-primary);
}

.glass-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.glass-menu li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.glass-menu li a:hover {
  color: var(--text-primary);
  background: rgba(147, 51, 234, 0.1);
}

.glass-menu li a.active {
  background: var(--primary-gradient);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background: rgba(147, 51, 234, 0.1);
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced Hero Section */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at bottom, #0d1b2a 0%, #000000 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 60%, rgba(147, 51, 234, 0.15), transparent),
    radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.15), transparent),
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15), transparent);
  pointer-events: none;
  z-index: 1;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

#cosmos-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.gradient-text {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.subtitle {
  display: block;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(147, 51, 234, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: #9333ea;
  transform: translateY(-3px) scale(1.05);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid #9333ea;
  border-bottom: 2px solid #9333ea;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
  border-color: #06b6d4;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Wave Effect */
#wave-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.ripple-effect {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(147, 51, 234, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple-wave 1s ease-out forwards;
}

@keyframes ripple-wave {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Enhanced Section Styles */
section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced About Section */
.about {
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(6, 182, 212, 0.02));
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
  transition: left 0.6s;
}

.about-card:hover::before {
  left: 100%;
}

.about-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 25px 50px rgba(147, 51, 234, 0.15);
}

.card-icon {
  width: 90px;
  height: 90px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.4s ease;
}

.about-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Enhanced Programs Section */
.programs {
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(147, 51, 234, 0.02), rgba(6, 182, 212, 0.02));
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  transition: left 0.6s;
  z-index: 1;
}

.program-card:hover::before {
  left: 100%;
}

.program-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.15);
}

.program-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3; /* or adjust based on your image ratio */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.program-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.program-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(6, 182, 212, 0.3));
  transition: all 0.3s ease;
}

.program-card:hover .program-banner::after {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(6, 182, 212, 0.1));
}

.program-content {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.program-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.program-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary_gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.4s ease;
}

.program-card:hover .program-icon {
  transform: scale(1.1) rotate(-5deg);
}

.program-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.program-card > .program-content > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, rgba(10, 10, 26, 0.95), rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
  border-radius: 30px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 0 50px rgba(255, 255, 255, 0.05);
  position: relative;
  backdrop-filter: blur(25px);
  animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 0, 0, 0.3);
  color: #ffffff;
  font-size: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 50px;
  padding: 40px;
  min-height: 500px;
}

.modal-image {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(0, 255, 255, 0.2);
}

.modal-details h2 {
  font-size: 3rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #00ff7f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-details p {
  color: #c0c0c0;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.program-features {
  list-style: none;
  margin-bottom: 35px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.program-features li {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: #e0e0e0;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.program-features li:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.program-features li::before {
  content: "⚡";
  margin-right: 10px;
  color: #00ffff;
  font-size: 16px;
}

.program-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-label {
  font-size: 1rem;
  color: #a0a0a0;
}

.register-btn {
  background: linear-gradient(135deg, #00ffff, #ff00ff, #00ff7f);
  background-size: 300% 300%;
  border: none;
  color: #000000;
  padding: 20px 50px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.3);
  animation: buttonGradient 3s ease-in-out infinite;
}

.register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.register-btn:hover::before {
  left: 100%;
}

.register-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.5);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(100px) rotateX(20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
  }
}

@keyframes buttonGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced Gallery Section */
.gallery {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(245, 158, 11, 0.03));
  position: relative;
  overflow: hidden;
}

/* Animated Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #9333ea, #06b6d4, #10b981, #f59e0b);
  padding: 20px 0;
  margin-bottom: 4rem;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.8), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(16, 185, 129, 0.8), transparent);
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-content span {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-right: 4rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Gallery Carousel */
.gallery-carousel-section {
  margin-bottom: 4rem;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 800px;
  position: relative;
  height: 800px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(16, 185, 129, 0.8);
  transform: translateY(-50%) scale(1.1);
  border-color: transparent;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Various Grid Structure - Enhanced with Grayscale Effect */
.gallery-grid-container {
  margin-top: 4rem;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-item.large {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item.medium {
  grid-row: span 1;
  grid-column: span 1;
}

.gallery-item.small {
  grid-row: span 1;
  grid-column: span 1;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(16, 185, 129, 0.3);
  z-index: 10;
}

.gallery-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: all 0.4s ease;
  /* Default grayscale and dimmed effect */
  filter: grayscale(100%) brightness(0.4) contrast(0.8);
}

/* Hover effect - show actual colors */
.gallery-item:hover .gallery-image {
  filter: grayscale(0%) brightness(1) contrast(1);
}

/* Clicked state - maintain colors */
.gallery-item.clicked .gallery-image {
  filter: grayscale(0%) brightness(1) contrast(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.9) 0%,
    rgba(6, 182, 212, 0.8) 50%,
    rgba(147, 51, 234, 0.9) 100%
  );
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Clicked state overlay */
.gallery-item.clicked .gallery-overlay {
  opacity: 0.8;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.7) 0%,
    rgba(6, 182, 212, 0.6) 50%,
    rgba(147, 51, 234, 0.7) 100%
  );
}

.gallery-content h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.gallery-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.gallery-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-content h3,
.gallery-item:hover .gallery-content p,
.gallery-item:hover .gallery-stats,
.gallery-item.clicked .gallery-content h3,
.gallery-item.clicked .gallery-content p,
.gallery-item.clicked .gallery-stats {
  transform: translateY(0);
}

/* More Button */
.gallery-more-section {
  text-align: center;
  margin-top: 3rem;
}

.gallery-more-btn {
  background: linear-gradient(135deg, #10b981, #06b6d4, #9333ea);
  background-size: 300% 300%;
  border: none;
  color: white;
  padding: 1.5rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
  animation: gradientShift 3s ease-in-out infinite;
}

.gallery-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.gallery-more-btn:hover::before {
  left: 100%;
}

.gallery-more-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.gallery-more-btn i {
  transition: transform 0.3s ease;
}

.gallery-more-btn:hover i {
  transform: translateX(5px);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Design for Gallery */
@media (max-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .marquee-content span {
    margin-right: 2rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-content h3 {
    font-size: 1.3rem;
  }

  .gallery-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .marquee-container {
    padding: 15px 0;
  }

  .carousel-slide {
    height: 300px;
  }

  .carousel-caption {
    padding: 2rem 1rem 1rem;
  }

  .gallery-masonry {
    gap: 1rem;
    grid-auto-rows: 250px;
  }

  .gallery-more-btn {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }

  .gallery-content {
    padding: 1rem;
  }

  .gallery-stats span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Enhanced Events Section */
.events {
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.02), rgba(239, 68, 68, 0.02));
}

.events-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 25px;
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
  transition: left 0.6s;
}

.event-card:hover::before {
  left: 100%;
}

.event-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.15);
}

.event-image {
  width: 120px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.event-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.3));
  opacity: 0;
  transition: all 0.3s ease;
}

.event-card:hover .event-image::after {
  opacity: 1;
}

.event-date {
  text-align: center;
  min-width: 100px;
  height: 120px;
  background: var(--accent-gradient);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  color: white;
  flex-shrink: 0;
}

.date-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.date-month {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.event-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.event-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.event-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.event-time,
.event-location {
  position: relative;
  padding-left: 2rem;
  display: flex;
  align-items: center;
}

.event-time::before {
  content: "🕒";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.event-location::before {
  content: "📍";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Enhanced Team Section */
.team {
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(6, 182, 212, 0.02), rgba(147, 51, 234, 0.02));
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
  transition: left 0.6s;
}

.team-card:hover::before {
  left: 100%;
}

.team-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 25px 50px rgba(147, 51, 234, 0.15);
}

.team-avatar {
  margin-bottom: 1.5rem;
}

.team-image {
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(6, 182, 212, 0.3));
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.team-card:hover .team-image::after {
  opacity: 1;
}

.team-card:hover .team-image {
  transform: scale(1.1);
}

.team-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.team-role {
  color: #9333ea;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.team-description {
  color: var(--text-secondary);
  line-height: 1.7;
}
/* Enhanced Team Section with Tree Structure */
.team {
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(6, 182, 212, 0.02), rgba(147, 51, 234, 0.02));
  padding: clamp(80px, 12vw, 150px) 0;
}

/* Organizations Tree Structure */
.organizations-tree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  
  gap: 4rem;
  margin: 6rem 0;
}

.organization-tree {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.organization-tree::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.1), transparent);
  transition: left 0.6s;
}

.organization-tree:hover::before {
  left: 100%;
}

.organization-tree:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 30px 60px rgba(147, 51, 234, 0.15);
}

/* Parent Node Styling */
.parent-node {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.org-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.3);
}

.organization-tree:hover .org-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.4);
}

.parent-node h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.parent-node p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Tree Branches */
.tree-branches {
  position: relative;
}

.branch-line {
  width: 2px;
  height: 40px;
  background: var(--primary-gradient);
  margin: 0 auto 2rem;
  border-radius: 2px;
  position: relative;
}

.branch-line::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Child Nodes */
.child-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.child-node {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.child-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  transition: left 0.5s;
}

.child-node:hover::before {
  left: 100%;
}

.child-node:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
}

.member-avatar {
  margin-bottom: 1rem;
}

.member-image {
  width: 100px;
  height: 100px;
  object-fit: cover;     /* Replaces background-size: cover */
  object-position: center; /* Replaces background-position: center */
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
}

.member-image::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(6, 182, 212, 0.3));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

.child-node:hover .member-image::before {
  opacity: 1;
}

.child-node:hover .member-image {
  transform: scale(1.1);
}

.member-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.member-role {
  color: #9333ea;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.member-skills {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

/* Governing Body Section */
.governing-body-section {
  margin-top: 4rem;
}

.governing-body-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.governing-body-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.6s;
}

.governing-body-card:hover::before {
  left: 100%;
}

.governing-body-card:hover {
  transform: translateY(-10px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.15);
}

.governing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.governing-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.governing-body-card:hover .governing-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.governing-header h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.governing-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Governing Grid */
.governing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.governing-member {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.governing-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.5s;
}

.governing-member:hover::before {
  left: 100%;
}

.governing-member:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.gov-avatar {
  flex-shrink: 0;
}

.gov-image {
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.3s ease;
}

.gov-image::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

.governing-member:hover .gov-image::before {
  opacity: 1;
}

.governing-member:hover .gov-image {
  transform: scale(1.1);
}

.gov-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.gov-info span {
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Responsive Design for Tree Structure */
@media (max-width: 1024px) {
  .organizations-tree {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .organization-tree {
    padding: 2.5rem;
  }

  .governing-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .organizations-tree {
    gap: 2rem;
  }

  .organization-tree {
    padding: 2rem;
  }

  .child-nodes {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .governing-body-card {
    padding: 2rem;
  }

  .governing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .governing-member {
    padding: 1rem;
  }

  .org-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .parent-node h3 {
    font-size: 1.5rem;
  }

  .governing-header h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .organization-tree {
    padding: 1.5rem;
  }

  .governing-body-card {
    padding: 1.5rem;
  }

  .governing-member {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .gov-info h5 {
    font-size: 1rem;
  }

  .member-image {
    width: 200px;
    height: 200px;
  }

  .gov-image {
    width: 50px;
    height: 50px;
  }

  .org-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .governing-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Enhanced Contact Section */
.contact {
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(147, 51, 234, 0.02), rgba(6, 182, 212, 0.02));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-map {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 400px;
}

.contact-map:hover {
  border-color: rgba(147, 51, 234, 0.4);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  /* filter: grayscale(1) invert(1) contrast(1.2); */
  transition: all 0.3s ease;
}

.contact-map:hover iframe {
  /* filter: grayscale(0.5) invert(0.9) contrast(1.1); */
}

/* Enhanced Footer */
.footer {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(30, 30, 30, 0.95));
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9333ea;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6b7280;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }

  .modal-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .glass-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    width: 90vw;
    max-width: 400px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px);
  }

  .glass-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .glass-menu li a {
    padding: 1rem;
    display: block;
    border-radius: 15px;
  }

  .event-card {
    flex-direction: column;
    text-align: center;
  }

  .event-date {
    align-self: center;
    min-width: auto;
    width: fit-content;
  }

  .event-meta {
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 350px;
  }

  .program-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 60px 0;
  }

  .glass-container {
    padding: 10px 20px;
    width: 95vw;
  }

  .about-grid,
  .programs-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-card,
  .program-card,
  .team-card {
    padding: 2rem;
  }

  .event-card {
    padding: 2rem;
  }

  .gallery-item {
    height: 300px;
  }

  .modal-content {
    max-height: 80vh;
    margin: 10px;
    border-radius: 20px;
  }

  .close-btn {
    width: 50px;
    height: 50px;
    top: 15px;
    right: 15px;
    font-size: 20px;
  }

  .program-stats {
    grid-template-columns: 1fr;
  }
}

/* Custom Themed Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #0a0a0a, #1a1a2e);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff, #ff00ff, #00ff7f);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00cccc, #cc00cc, #00cc5f);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #00ffff #1a1a2e;
}

/* Performance optimizations */
* {
  will-change: auto;
}

.btn,
.about-card,
.program-card,
.event-card,
.team-card,
.gallery-item {
  will-change: transform;
}
