:root {
  --primary: #0a0c15;
  --secondary: #0f111a;
  --accent: #0d8bff;
  --accent-light: #4da6ff;
  --accent-bright: #00ccff;
  --text: #ffffff;
  --text-secondary: #e0f0ff;
  --glass: rgba(15, 25, 45, 0.8);
  --glass-border: rgba(255, 255, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background images for sections */
#about, #events, #contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

#about::before, #events::before, #contact::before, #team-section::before, #gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://i.postimg.cc/ncsC9v3z/over2.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.08;
  z-index: -1;
}

[data-theme="light"] #about::before,
[data-theme="light"] #events::before,
[data-theme="light"] #contact::before {
  opacity: 0.05;
}

/* Adjust section z-index */
section {
  z-index: 1;
}

.hero-section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: slideAnimation 16s infinite;
  filter: brightness(0.8) contrast(1.1);
}

.slide:nth-child(1) {
  background-image: url('https://i.postimg.cc/xChq68CY/Panel-in-Automatize.jpg');
  animation-delay: 0s;
}

.slide:nth-child(2) {
  background-image: url('https://i.postimg.cc/cJDv8XGv/Confusion-to-Confidence-Seminar.jpg');
  animation-delay: 4s;
}

.slide:nth-child(3) {
  background-image: url('https://i.postimg.cc/6pf2BBHL/Dawat-EEE-Iftar.jpg');
  animation-delay: 8s;
}

.slide:nth-child(4) {
  background-image: url('https://i.postimg.cc/N0GyMZSh/Club-Fair-Spring-2025.jpg');
  animation-delay: 12s;
}

@keyframes slideAnimation {
  0% { opacity: 0; }
  10% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* Dark overlay for better text contrast */
.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 21, 0.7);
  z-index: 2;
}

/* Quantum Overlay Effect */
.quantum-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: 
    radial-gradient(circle at center, rgba(13, 139, 255, 0.03) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 86, 210, 0.05) 2px);
  animation: particle-pulse 6s infinite alternate;
  overflow: hidden;
  opacity: 0.5;
}

@keyframes particle-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Digital Grid Overlay */
.digital-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  background-image: 
    linear-gradient(rgba(13, 139, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 139, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: gridMove 60s infinite linear;
  opacity: 0.4;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* Content container */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
  padding: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Top bar with glassmorphism effect */
.top-bar {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.top-bar.scrolled {
  height: 70px;
}
.top-bar.scrolled .brand-icon {
  width: 40px;
  height: 40px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-icon {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 0 8px rgba(13, 139, 255, 0.5));
  transition: all 0.4s ease;
}

.brand-icon:hover {
  transform: scale(1.05);
}

.brand-text {
  text-align: left;
}

.university-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.club-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--accent-bright), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(13, 139, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 1px;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
  color: var(--accent-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-bright);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Main heading */
.main-heading {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: none;
  margin: 20px 0;
  background: linear-gradient(to right, var(--accent-bright), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 3px;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(13, 139, 255, 0.5);
  animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
  0% { text-shadow: 0 0 15px rgba(13, 139, 255, 0.5); }
  100% { text-shadow: 0 0 30px rgba(13, 139, 255, 0.8); }
}

/*Sub-heading*/
.sub-headingf {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: none;
  margin: 20px 0;
  color: var(--text);
  letter-spacing: 3px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.sub-heading {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: none;
  margin: 30px 0 40px;
  color: var(--accent-bright);
  letter-spacing: 3px;
  line-height: 1.1;
  min-height: 50px;
  text-shadow: 0 0 15px rgba(13, 139, 255, 0.5);
}
.sub-heading1 {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: none;
  margin: 30px 0 40px;
  color: var(--accent-bright);
  letter-spacing: 3px;
  line-height: 1.1;
  min-height: 50px;
  text-shadow: 0 0 15px rgba(13, 139, 255, 0.5);
}

#typewriter::after {
  content: '|';
  color: var(--accent-bright);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Join button */
.join-btn {
  margin-top: 30px;
  padding: 18px 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 2px;
  background: rgba(13, 139, 255, 0.15);
  color: var(--text);
  border: 2px solid var(--accent-bright);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s;
  z-index: 5;
  box-shadow: 0 0 20px rgba(13, 139, 255, 0.4);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.join-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 216, 255, 0.3), transparent);
  transition: 0.5s;
}

.join-btn:hover {
  background: rgba(13, 139, 255, 0.3);
  box-shadow: 0 0 30px var(--accent), 0 0 50px rgba(13, 139, 255, 0.5);
  transform: translateY(-3px);
}

.join-btn:hover::before {
  left: 100%;
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: float 15s infinite linear;
  opacity: 0.6;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  25% { transform: translate(20px, 40px); }
  50% { transform: translate(40px, 0); }
  75% { transform: translate(20px, -40px); }
  100% { transform: translate(0, 0); }
}

/* NEW STYLES FOR FIXED SECTIONS */
/* Common section styles */
section {
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  text-transform: none;
  color: var(--accent-bright);
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-bright);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* About section */
#about {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

#about .grid-container {
  grid-auto-rows: 1fr;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(13, 139, 255, 0.2);
}

.card-body {
  padding: 30px;
  flex: 1;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent-bright);
  text-transform: none;
  letter-spacing: 1px;
}

.card-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(13, 139, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(13, 139, 255, 0.2);
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.stat-value::after {
  content: '+';
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Events section */
#events {
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 100%;
}

.event-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 15px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  z-index: 2;
}

.badge-primary {
  background: rgba(13, 139, 255, 0.8);
  color: white;
}

.badge-success {
  background: rgba(46, 204, 113, 0.8);
  color: white;
}

.badge-warning {
  background: rgba(241, 196, 15, 0.8);
  color: white;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--accent-light);
  font-weight: 500;
}

/* Contact section */
#contact {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.contact-container {
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateX(10px);
  box-shadow: 0 0 20px rgba(13, 139, 255, 0.3);
}

.icon-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(13, 139, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon {
  width: 40px;
  height: 40px;
  fill: var(--accent-bright);
}

.contact-details h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-bright);
}

.contact-link {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1px solid rgba(13, 139, 255, 0.3);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 10px rgba(13, 139, 255, 0.3);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0 5px;
  pointer-events: none;
  transition: all 0.3s;
  color: var(--text-secondary);
  background: var(--glass);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 10px;
  font-size: 0.9rem;
  color: var(--accent-bright);
}

.submit-btn {
  width: 50%;
  max-width: 250px;
  padding: 10px;
  background: rgba(13, 139, 255, 0.2);
  color: var(--text);
  border: 2px solid var(--accent-bright);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: rgba(13, 139, 255, 0.4);
  box-shadow: 0 0 20px var(--accent);
}

/* Footer section */
footer {
  background: var(--primary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 5% 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.footer-content .brand {
  flex-direction: column;
  text-align: center;
  gap: 15px;
}

.footer-content .brand-icon {
  width: 80px;
  height: 80px;
}

.social-links {
  display: flex;
  gap: 25px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(13, 139, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(13, 139, 255, 0.4);
}

.copyright {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  width: 100%;
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 100;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.sidebar-overlay.active {
  transform: translateX(0);
}

.sidebar {
  width: 80%;
  max-width: 350px;
  height: 100%;
  background: var(--primary);
  padding: 30px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 70px;
}

.sidebar-link {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.sidebar-link:hover {
  color: var(--accent-bright);
  padding-left: 10px;
}

/* Responsive design */
/* =============================
   🔹 Scalable Typography
   ============================= */
.main-heading {
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
}

.section-header h2 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
}

.sub-heading,
.sub-headingf {
  font-size: clamp(1rem, 2vw, 1.6rem);
}

.club-name {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.nav-link {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

.join-btn {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  padding: clamp(10px, 1.5vw, 14px) clamp(24px, 4vw, 36px);
}

/* =============================
   🔹 Scalable Layout
   ============================= */
.top-bar {
  height: clamp(60px, 6vw, 100px);
  padding: clamp(10px, 2vw, 20px) clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: clamp(10px, 2vw, 30px);
}

.hamburger {
  display: none;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(15px, 2vw, 35px);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(15px, 2vw, 35px);
}

#about .grid-container {
  grid-auto-rows: auto;
}

.contact-form {
  padding: clamp(15px, 3vw, 40px);
}

.contact-card {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  flex-direction: row;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(15px, 2vw, 30px);
  margin-top: clamp(20px, 3vw, 50px);
}

/* =============================
   🔹 Responsive Breakpoints
   ============================= */
@media (max-width: 992px) {
  .top-bar {
    padding: clamp(10px, 2vw, 20px) 20px;
  }
  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .contact-container,
  .grid-container {
    grid-template-columns: 1fr;
  }
  #about .grid-container {
    grid-auto-rows: auto;
  }
  .top-bar {
    height: 80px;
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  .contact-form {
    padding: 25px;
  }
  .contact-card {
    flex-direction: column;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


/* NEW STYLES FOR ABOUT US PAGE */
.team-section {
  padding: 80px 5%;
  margin: 0 auto;
  justify-content: center; 
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  margin: 50px auto 0 auto;
  max-width:  1400px/* 3 columns and 2 gaps calc(3 * 280px + 2 * 35px);*/
}
.team-grid1 {
  display: flex;
  justify-content: center;
}


.team-member {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(13, 139, 255, 0.2);
}

.member-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-bright);
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(13, 139, 255, 0.3);
}

.member-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.member-role {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.member-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.member-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 139, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  transition: all 0.3s;
}

.contact-icon:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* NEW STYLES FOR GALLERY PAGE */
.gallery-section {
  padding: 80px 5%;
}


.gallery-grid1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  margin: 50px auto 0 auto;
  max-width:  1200px;
}
.gallery-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  margin: 50px auto 0 auto;
  max-width:  1400px;
}
.gallery-grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 50px auto 0;
  max-width: 1400px;
  
}

.gallery-grid3 iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 12, 21, 0.9), transparent);
  padding: 25px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 8px;
}

.gallery-date {
  font-size: 0.9rem;
  color: #FFDF00;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  padding: 12px 25px;
  background: rgba(13, 139, 255, 0.15);
  color: var(--text);
  border: 2px solid var(--accent-bright);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.back-btn:hover {
  background: rgba(13, 139, 255, 0.3);
  transform: translateX(-5px);
}

/* Hidden sections */
.page-section {
  display: none;
}

.active-section {
  display: block;
}

/* NEW: Theme toggle button */
.theme-toggle {
  background: rgba(13, 139, 255, 0.1);
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle:hover {
  background: rgba(13, 139, 255, 0.1);
}
/*------------------------------------------------------------*/
/* NEW: Light mode color variables */

[data-theme="light"]:not(.hero-section):not(.top-bar):not(.hero-section *) {
  --primary: #f0f4f8;
  --secondary: #f0f4f8;
  --accent: #0d8bff;
  --accent-light: #4da6ff;
  --accent-bright: #0077cc;
  --text: #1a1a1a;
  --text-secondary: #333333;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
}

/* Light mode top bar override */
[data-theme="light"] .top-bar {
  --primary: #f0f4f8;        
  --secondary: #f0f4f8;
  --text: #1a1a1a;
  --text-secondary: #333333;
  --glass: rgba(150, 160, 170, 0.5);     /* rgba(154, 161, 170, 0.5) rgba(230, 235, 240, 0.5)*/
  --glass-border: rgba(0, 0, 0, 0.1); 
}

[data-theme="light"] .nav-link,
[data-theme="light"] .sidebar-link {
  color: #ecf0f1;
}


/* Ensure hero section, topbar and their children always use dark mode variables */
.hero-section,
.top-bar,
.hero-section *,
.top-bar * {
  --primary: #121212;
  --secondary: #121212;
  --accent: #0d8bff;
  --accent-light: #4da6ff;
  --accent-bright: #00ccff;
  --text: #ffffff;
  --text-secondary: #e0f0ff;
  --glass: rgba(15, 15, 15, 0.6);
  --glass-border: rgba(255, 255, 255, 0.15);
}

/* Adjustments for non-hero sections */
[data-theme="light"] #about::before,
[data-theme="light"] #events::before,
[data-theme="light"] #contact::before,
[data-theme="light"] #team-section::before,
[data-theme="light"] #gallery-section::before {
  opacity: 0.05;
}

[data-theme="light"] .card,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .team-member {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stat-item,
[data-theme="light"] .contact-card {
  background: rgba(13, 139, 255, 0.05);
  border: 1px solid rgba(13, 139, 255, 0.1);
}

[data-theme="light"] .social-link {
  background: rgba(13, 139, 255, 0.05);
}

[data-theme="light"] .social-link:hover {
  background: var(--accent);
}

[data-theme="light"] .gallery-overlay {
  background: linear-gradient(to top, rgba(240, 244, 248, 0.9), transparent);
}

[data-theme="light"] .gallery-title {
  color: var(--text);
}

[data-theme="light"] .section-header h2::after {
  box-shadow: 0 0 10px rgba(13, 139, 255, 0.3);
}

[data-theme="light"] .join-btn,
[data-theme="light"] .submit-btn,
[data-theme="light"] .back-btn {
  background: rgba(13, 139, 255, 0.1);
  box-shadow: 0 0 15px rgba(13, 139, 255, 0.2);
}

[data-theme="light"] .join-btn:hover,
[data-theme="light"] .submit-btn:hover,
[data-theme="light"] .back-btn:hover {
  background: rgba(13, 139, 255, 0.2);
  box-shadow: 0 0 25px rgba(13, 139, 255, 0.3);
}

[data-theme="light"] .stat-value {
  color: var(--accent);
}

/* Smooth transition for theme switching */
body, .card, .contact-card, .contact-form, .team-member, 
.stat-item, .social-link, .gallery-overlay, .join-btn,
.submit-btn, .back-btn {
  transition: background-color 0.5s ease, color 0.5s ease, 
              border-color 0.5s ease, box-shadow 0.5s ease;

}




