/* Base Styles */
/* Base Styles */
:root {
    --navy-blue: #001f3f;
    --royal-blue: #0056b3;
    --sky-blue: #87CEEB;
    --light-blue: #E6F2FF;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --transition: all 0.3s ease;
    --card-colors: #4e54c8, #8f94fb, #ff758c, #ff7eb3, #7fdbff, #a162e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: var(--off-white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--navy-blue);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles & Nav*/


:root {
  --navy-blue: #0a2a66;
  --royal-blue: #1a5fdf;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main-header {
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: var(--header-height);
}

html, body {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}


.ho-container {
  padding: 0 15px; 
  overflow-x: hidden;
  box-sizing: border-box;
}



/* Gallery Hero Section */
.gallery-hero {
  background: linear-gradient(135deg, var(--navy-blue), var(--royal-blue));
  color: var(--white);
  padding: 120px 5% 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.3;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--royal-blue);
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Event Filter */
.event-filter {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 800px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--navy-blue);
  background: transparent;
  color: var(--navy-blue);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--navy-blue);
  color: var(--white);
}

.filter-btn.active {
  background: var(--navy-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Event Tabs */
.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.event-tab {
  padding: 8px 20px;
  background: var(--white);
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.event-tab:hover {
  background: var(--navy-blue);
  color: var(--white);
}

.event-tab.active {
  background: var(--navy-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 31, 63, 0.7), transparent);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: var(--white);
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .item-caption {
  transform: translateY(0);
  opacity: 1;
}

.item-caption h3 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.item-caption p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-container {
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.lightbox-image-container img.zoomed {
  transform: scale(1.5);
  cursor: zoom-out;
}

.close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--sky-blue);
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.nav-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background-color: var(--royal-blue);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.image-counter {
  color: var(--white);
  font-weight: 500;
  min-width: 100px;
  text-align: center;
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-bottom: 20px;
  max-width: 80%;
  font-size: 1.1rem;
}

.lightbox-caption strong {
  color: var(--sky-blue);
  font-weight: 600;
}

.lightbox-thumbnails {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--royal-blue) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--royal-blue);
  border-radius: 3px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--sky-blue);
  transform: scale(1.05);
}


/* Animations */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 0.8s ease-out forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .gallery-hero {
        padding: 100px 5% 80px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .lightbox-content {
        width: 85%;
    }
}

@media (max-width: 992px) {
    .gallery-section {
        padding: 60px 5%;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .filter-container {
        max-width: 600px;
    }
    
    .lightbox-image-container {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 80px 5% 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header h2::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }
    
    .filter-container {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .gallery-item {
        aspect-ratio: 3/2;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-image-container {
        height: 50vh;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .thumbnail {
        width: 70px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 70px 5% 50px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .gallery-section {
        padding: 50px 5%;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .filter-container {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-width: 1px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .item-caption h3 {
        font-size: 1rem;
    }
    
    .item-caption p {
        font-size: 0.8rem;
    }
    
    .close-btn {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .lightbox-nav {
        gap: 20px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .image-counter {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .lightbox-thumbnails {
        padding: 5px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 400px) {
    .gallery-hero {
        padding: 60px 5% 40px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .lightbox-image-container {
        height: 40vh;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 40px;
    }
}