* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  color: #333;
}

/* Improved header styling with modern clean layout */
.first {
  background-image: url(images/sec1-bck.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.first-container {
  max-width: 1440px;
  padding-inline: 6%;
  padding-top: 15px;

  margin: auto;
}

.gallery-item {
  position: relative;
}

/* Thumbnail (image box size) */
.video-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1; /* same as your thumbnail */
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video container matches thumbnail size */
.video-player {
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
}

/* iframe fills container */
.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Toggle */
.video-item.active .video-thumbnail {
  display: none;
}

.video-item.active .video-player {
  display: block;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;   /* same size as image thumbnails */
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  padding-inline: 0;
}

/* Navbar with improved spacing and modern design */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand img {
  height: auto;
  width: auto;
  max-height: 40px;
}

/* Hamburger menu button styling */
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
} 
body > section > div > header > nav > button > span > img{
    width: 30px;
}

.hamburger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon img {
  width: 24px;
  height: auto;
}

/* Navbar menu styling for desktop */
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
}

.navbar-nav {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
}

/* Navigation button styling */
.nav-button {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 6px;
  background-color: #7eccd7;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-button:hover {
  background-color: #6ab5c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126, 204, 215, 0.3);
}

.nav-button--outlined {
  background-color: transparent;
  border: 2px solid #7eccd7;
  color: #ffffff;
  padding: 0.6rem 1.5rem;
}

.nav-button--outlined:hover {
  background-color: rgba(126, 204, 215, 0.15);
  border-color: #ffffff;
}

button{
    background: #7ECCD7;
    border-radius: 5px;
    border: none;
    color: #FFFFFF;
    padding: 15px 52px;
    cursor: pointer;

    font-size: 1rem;
    font-weight: 700;
    line-height: 19px;
    font-style: normal;
}

li:nth-child(1) > a > button {
    background: transparent;
    border: 3px solid #7ECCD7;
}

/* Year Navigation */
.navbar1 {
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gallery-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.year-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.year-btn {
  padding: 10px 25px;
  border: 2px solid #fff;
  background: transparent;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.year-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.year-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px;
}

.gallery-year {
  display: none;
}

.gallery-year.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.gallery-section {
  margin-bottom: 60px;
}

.section-title {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.video-item {
  position: relative;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-item:hover .play-icon {
  background: rgba(102, 126, 234, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

#lightbox-video {
  max-width: 100%;
  max-height: 100%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-btn,
.prev-btn,
.next-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.close-btn:hover,
.prev-btn:hover,
.next-btn:hover {
  background: rgba(102, 126, 234, 0.8);
  transform: scale(1.1);
}

.close-btn {
  top: 20px;
  right: 20px;
  font-size: 36px;
}

.prev-btn {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* FOOTER */
footer{
    background-color: #313131;
    padding-block: 97px 49px;
}
.footer-details{
    max-width: 1440px;
    padding-inline: 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    
}
.fline{
    border: 1px solid #626262;
    max-width: 1400px;
    padding-inline: 2%;
    margin: auto;
    margin-block: 100px 42px;
}
.small-things{
    font-family: Figtree;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #CBD5E1;

    text-align: center;
}

/* Responsive design - hamburger menu on mobile */
@media screen and (max-width: 768px) {
  .navbar {
    gap: 1rem;
  }

  .navbar-brand img {
    max-height: 32px;
  }

  .navbar-toggler {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 60, 114, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(126, 204, 215, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar-menu.active {
    max-height: 300px;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-button {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .lightbox-content {
    width: 95%;
    height: 95%;
  }

  .close-btn,
  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

   footer{
        padding-block: 30px 40px;
    }
    .footer-details{
    max-width: 1440px;
    padding-inline: 4%;
    display: block;

   
    
}
}

@media screen and (max-width: 480px) {
  .header {
    padding-block: 1rem;
  }

  .navbar-brand img {
    max-height: 28px;
  }

  .hamburger-icon img {
    width: 20px;
  }

  .navbar-menu {
    padding: 1rem;
  }

  .nav-button {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}
