/* main.css */

/* --- CSS Variables --- */
:root {
  --bg-color: #0A0A0A;
  --text-color: #E0E0E0;
  --header-color: #FFFFFF;
  --gradient-start: #6A1B9A;
  --gradient-end: #303F9F;
  --accent-color: #4A148C;
  --font-body: 'Inter', sans-serif;
  --font-subheading: 'Montserrat', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --easeOutBack: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* --- Focus Styles for Accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gradient-end);
  outline-offset: 3px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--header-color);
}

/* --- Parallax Background --- */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: -1;
  background-image: url('../images/rm222batch5-mind-22.jpg');
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top;
  filter: brightness(0.7);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--header-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1.main-heading {
  font-size: clamp(3rem, 10vw, 6rem);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 2px;
}

h1.page-heading {
  font-size: clamp(2.5rem, 8vw, 4rem);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 1px;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-family: var(--font-subheading);
  font-weight: 700;
}

p {
  max-width: 65ch;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout Containers --- */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 2rem;
}

section {
  padding: 4rem 0;
}

section.is-visible {
  opacity: 1;
  transform: none;
}

.page-section, .home-deck-section, .join-us-section, .intro-section, .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Intro and Top Highlights Two-Column Layout --- */
.intro-highlights-wrapper {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: flex-start;
    margin-bottom: 2rem;
    height: min-content;
}

.intro-section {
    flex: 1;
    min-width: 0;
    min-width: calc(50% - 1rem);
    position: relative;
    padding: 3rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.15) 0%, rgba(48, 63, 159, 0.15) 100%);
    -webkit-backdrop-filter: blur(12px) saturate(1.2) contrast(1.15);
    backdrop-filter: blur(12px) saturate(1.2) contrast(1.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(106, 27, 154, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-section::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: 
        radial-gradient(ellipse 150% 150% at 20% 30%, rgba(106, 27, 154, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 120% 120% at 80% 70%, rgba(48, 63, 159, 0.15) 0%, transparent 50%);
    filter: blur(12px);
    z-index: 0;
    animation: introShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

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

.intro-section h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.intro-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 90%;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.intro-section:hover {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.2) 0%, rgba(48, 63, 159, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 6px 20px rgba(106, 27, 154, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

@keyframes introShimmer {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

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

/* --- Top Highlight Section --- */
.top-highlight-section {
    flex: 1;
    min-width: calc(50% - 1rem);
    padding: 2rem;
}

.highlight-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

.highlight-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Carousel Styling */
.highlight-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.highlight-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.highlight-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.highlight-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.highlight-carousel-wrapper:hover .carousel-control {
    opacity: 1;
}

.carousel-control.prev {
    left: 12px;
}

.carousel-control.next {
    right: 12px;
}

.carousel-control:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-indicators .indicator.active {
    background: var(--gradient-start);
    width: 24px;
    border-radius: 4px;
}

/* Highlight Content */
.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-date {
    color: var(--gradient-start);
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--header-color);
    line-height: 1.3;
    margin: 0;
}

.highlight-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Mobile: Top Highlight at very top, before intro */
@media (max-width: 1024px) {
    .intro-highlights-wrapper {
        flex-direction: column;
    }
    
    .top-highlight-section {
        flex: 1;
        width: 100%;
        min-width: 100%;
        order: -1;
    }
    
    .intro-section {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .highlight-carousel-wrapper {
        height: 220px;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .highlight-carousel-wrapper {
        height: 200px;
    }
    
    .top-highlight-section {
        padding: 1.5rem;
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
    }
}

/* --- Enhanced Liquid Glass Effect --- */
.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.2) contrast(1.15);
  backdrop-filter: blur(12px) saturate(1.2) contrast(1.15);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(106, 27, 154, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  overflow: visible;
  transition: all 0.3s var(--easeOutBack);
}

.liquid-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(106, 27, 154, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: 
    radial-gradient(ellipse 120% 120% at 30% 20%, rgba(106, 27, 154, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 80% at 70% 80%, rgba(48, 63, 159, 0.1) 0%, transparent 50%);
  filter: blur(8px);
  z-index: 0;
  animation: glassShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

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

@keyframes glassShimmer {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}


/* --- Navbar --- */

.navbar-container {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.navbar {
  position: fixed;
  top: 20px;
  width: 90%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  z-index: 1000;
  overflow: visible;
}

.nav-logo img {
  vertical-align: middle;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--header-color);
  text-decoration: none;
  font-family: var(--font-subheading);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--easeOutBack);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
}
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  color: var(--header-color);
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  background: none;
  border: none;
  outline: none;
}
/* --- Hero Section --- */
.hero-section {
    min-height: 80vh;
    justify-content: center;
}
.sub-heading, .page-subheading {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 800px;
  margin-top: 1rem;
}

/* --- Card Decks & Cards --- */
.home-deck-section {
    width: 100%;
}
.deck-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.deck-header h2 a {
    color: var(--header-color);
    text-decoration: none;
}
.card-deck-container {
    width: 100%;
    padding: 2rem;
}
.card-deck {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.5rem; /* for scrollbar */
}
.horizontal-scroll {
  overflow-x: auto;
  -ms-overflow-style: auto; /* IE and Edge - show scrollbar */
  scrollbar-width: thin; /* Firefox - thin scrollbar */
  scrollbar-color: var(--gradient-start) transparent; /* Firefox - gradient-like effect */
}

/* Custom scrollbar styling for Chrome, Safari, and Edge */
.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 0 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 8px rgba(106, 27, 154, 0.5);
}
/* --- Enhanced Cards --- */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px) saturate(1.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  text-align: left;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(106, 27, 154, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(106, 27, 154, 0.05) 0%, 
    rgba(48, 63, 159, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 8px 30px rgba(106, 27, 154, 0.2),
    0 4px 15px rgba(48, 63, 159, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}
.event-card {
  width: 300px;
  cursor: pointer;
}

/* Event card image container for overlay */
.event-card .card-img-container {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.event-card .card-img-container .card-img {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card:hover .card-img-container .card-img {
  transform: scale(1.1);
}

/* Card Overlay for event cards */
.event-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .card-overlay,
.event-card:focus .card-overlay {
  opacity: 1;
}

.event-card:hover .view-gallery-btn,
.event-card:focus .view-gallery-btn {
  transform: translateY(0);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}
.card-text {
  font-size: 0.95rem;
}
.team-card {
    width: 250px;
    text-align: center;
}
.card-img-top {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5rem auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
}
.card-title-team {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
}
.card-text-role {
    color: #bbb;
}

/* --- Buttons --- */
.btn-gradient {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-family: var(--font-subheading);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.6s var(--easeOutBack), box-shadow 0.6s var(--easeOutBack);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.4);
}
.btn-gradient i {
    margin-left: 0.5rem;
}

/* --- Join Us Section (Home) --- */
.join-us-section {
    width: 100%;
}
.benefits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}
.benefits-container ul {
    list-style: none;
    text-align: left;
}
.benefits-container li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.benefits-container i {
    color: var(--gradient-start);
    margin-right: 0.8rem;
}

.join-btn {
  font-size: large;
  margin-bottom: 20px;
}

/* --- Events Page --- */
.events-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.events-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2rem);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.events-grid-container {
    width: 100%;
    padding: 2rem;
}
.events-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 2rem;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1400px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.event-card-full {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.event-card-full .card-img-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.event-card-full .card-img {
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card-full:hover .card-img {
    transform: scale(1.1);
}

/* Permanent View Gallery Button */
.view-gallery-btn-permanent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.3s var(--easeOutBack);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.view-gallery-btn-permanent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(106, 27, 154, 0.6);
}

.view-gallery-btn-permanent:active {
    transform: translateY(0);
}

/* --- Event Location Bar --- */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gallery-modal-container {
    position: relative;
    width: 95%;
    max-width: 1100px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 10px 40px rgba(106, 27, 154, 0.2);
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s var(--easeOutBack);
}

.gallery-modal.active .gallery-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.gallery-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Header */
.gallery-modal-header {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
}

.gallery-modal-date {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* Featured Photo Area */
.gallery-featured-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 300px;
    position: relative;
}

.gallery-featured-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-featured-photo {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.gallery-featured-photo.loading {
    opacity: 0.5;
}

.gallery-photo-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-subheading);
}

/* Navigation Buttons */
.gallery-nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 0.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Thumbnail Strip */
.gallery-thumbnails-container {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbnails-container::-webkit-scrollbar {
    display: none;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    min-width: min-content;
}

.gallery-thumbnail {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.gallery-thumbnail.active {
    border-color: var(--gradient-start);
    opacity: 1;
    box-shadow: 0 0 15px rgba(106, 27, 154, 0.5);
}

/* Prevent body scroll when modal is open */
body.gallery-modal-open {
    overflow: hidden;
}

/* Gallery Modal Responsive */
@media (max-width: 768px) {
    .gallery-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-featured-wrapper {
        max-height: 50vh;
    }
    
    .gallery-featured-photo {
        max-height: 50vh;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .gallery-thumbnails-container {
        padding: 1rem;
    }
    
    .gallery-thumbnails {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .gallery-modal-header {
        padding: 1rem;
    }
    
    .gallery-close-btn {
        width: 38px;
        height: 38px;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        margin: 0 0.25rem;
    }
    
    .gallery-featured-container {
        padding: 0.5rem;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 40px;
    }
}

/* --- Team Page --- */
.team-sub-heading {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.team-sub-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}
.team-grid-container {
    width: 100%;
    padding: 2rem;
}
.single-card {
    display: flex;
    justify-content: center;
}
.single-card .team-card-full {
    max-width: 320px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}
.team-card-full {
    width: 100%;
    max-width: 300px;
    text-align: center;
}
.team-socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.team-socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s var(--easeOutBack);
}
.team-socials a:hover {
    color: white;
    transform: scale(1.2);
}

/* --- About Page --- */
.about-certificate-container{
  justify-content: space-between;
  align-items: center;
  display: flex;
  flex-wrap: wrap-reverse;
  max-height: 80vh;
}
.certificate {
  width: 90vw;
  max-width: 550px;
  height: auto;
}
.certificate-img {
  width: inherit;
  max-width: inherit;
  height: auto;
  border-radius: 15px;
  box-shadow: 10px 10px 10px #0A0A0A;
  transition: all 0.6s var(--easeOutBack);
}

.certificate-img:hover {
  transform: scale(1.05);
}

.about-section p {
  padding: 30 0 0 40px;
  max-width: 550px;
}
.vision-mission-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin: 3rem 0;
}
.vision-mission-card {
    padding: 2rem;
    text-align: left;
}
.contact-us-container {
    margin: 3rem 0;
    width: 100%;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.contact-person {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--header-color);
    text-decoration: none;
    margin-top: 0.5rem;
    background-color: #25D366;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s;
}
.contact-link:hover {
    background-color: #128C7E;
}
.connect-banner {
    margin-top: 4rem;
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.2), rgba(48, 63, 159, 0.2));
}
.connect-banner .footer-socials {
    justify-content: center;
    margin-top: 1rem;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 2rem;
  margin-top: 4rem;
  background: rgba(10, 10, 10, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-subheading);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: white;
}
.footer-socials {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer-socials a {
  color: var(--text-color);
  font-size: 1.8rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-socials a:hover {
  color: white;
  transform: scale(1.2);
}
.footer-contact {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
}
.footer-contact a {
  color: var(--gradient-end);
  text-decoration: none;
}
.footer-copyright {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  justify-content: center;
}

/* --- Dynamic Background --- */
#dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, 
    var(--bg-color) 0%, 
    rgba(26, 10, 42, 1) 50%, 
    rgba(15, 20, 45, 1) 100%);
  pointer-events: none;
}

/* Subtle gradient overlay for depth */
#dynamic-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 20%, rgba(106, 27, 154, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(48, 63, 159, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
    border-radius: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.active {
    display: flex;
    max-height: 300px;
  }
  .nav-link {
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .hamburger {
    display: block;
  }
  .navbar {
    max-width: 400px;
    width: calc(100% - 4rem);
    top: 1rem;
    padding: 0.8rem 1rem;
  }
  .navbar.liquid-glass {
    border-radius: 16px;
    backdrop-filter: blur(8px) saturate(1.1);
  }
  .nav-logo img {
    height: 40px;
    width: auto;

  }
  .hamburger {
    font-size: 1.2rem;
  }
  .deck-header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
      text-align: left;
  }
  .vision-mission-container {
      grid-template-columns: 1fr;
  }
  .intro-section {
    padding: 6px;
  }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 6rem 1rem 1rem;
    }
    .card-deck-container, .team-grid-container, .events-grid-container {
        padding: 1.5rem 1rem;
    }
    .event-card {
        width: 260px;
        }
    
    /* Further reduce effects on small screens */
    .parallax-layer-3 {
      opacity: 0.3;
    }
    
    .liquid-glass {
      backdrop-filter: blur(8px);
    }
    
    .navbar {
      padding: 0.6rem 0.8rem;
      top: 0.5rem;
      max-width: 350px;
      width: calc(100% - 3rem);
    }
    .nav-logo img {
      height: 40px;
      width: auto;
    }
    .hamburger {
      font-size: 1.1rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .floating-element,
  .parallax-grid {
    animation: none;
  }
  
  .card:hover {
    transform: none;
  }
  
  section {
    transition: opacity 0.3s ease;
    transform: none;
    }
}

/* --- Mobile visibility hardening (ensure team page shows on small screens) --- */
@media (max-width: 768px) {
  .page-section,
  .team-grid-container,
  .team-grid,
  .team-card-full {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* --- Register Now Button --- */
.register-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: white;
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    border: 2px solid var(--gradient-start);
    cursor: pointer;
    margin-top: 0.6rem;
    width: 100%;
    transition: all 0.3s var(--easeOutBack);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.2);
    position: relative;
    z-index: 5;
}

.register-now-btn:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(106, 27, 154, 0.5);
}

.register-now-btn:active {
    transform: translateY(0);
}

/* --- Registration Modal --- */
.register-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.register-modal.active {
    opacity: 1;
    visibility: visible;
}

.register-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.register-modal-container {
    position: relative;
    width: 95%;
    max-width: 800px;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.97);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                0 10px 40px rgba(106, 27, 154, 0.2);
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s var(--easeOutBack);
}

.register-modal.active .register-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.register-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.register-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Header */
.register-modal-header {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.register-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
}

/* Iframe Wrapper */
.register-iframe-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.register-iframe-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-family: var(--font-subheading);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.register-iframe-loader i {
    color: var(--gradient-start);
    font-size: 1.3rem;
}

.register-iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Prevent body scroll when register modal is open */
body.register-modal-open {
    overflow: hidden;
}

/* Register Modal Responsive */
@media (max-width: 768px) {
    .register-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .register-modal-header {
        padding: 1rem;
    }

    .register-close-btn {
        width: 38px;
        height: 38px;
        top: 0.75rem;
        right: 0.75rem;
    }
}
