/* gallery.css - Hindustan Evergreen Gallery Page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  background: #f6fbf7;
  font-family: 'Inter', sans-serif;
  color: #111827;
}

.gallery-page {
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, .10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(132, 204, 22, .08), transparent 30%),
    linear-gradient(to bottom, #f6fbf7, #ffffff);
}

/* CONTAINER */
.container {
  width: min(1420px, calc(100% - 48px));
  margin: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

/* HERO */
.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 150px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-center {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 197, 94, .14);
  box-shadow: 0 10px 40px rgba(34, 197, 94, .08);
  color: #16a34a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 28px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 6vw, 90px);
  line-height: .98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, #16a34a, #84cc16);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.9;
  color: #617067;
}

/* SECTION TOP */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.section-badge {
  color: #16a34a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-desc {
  max-width: 640px;
  color: #617067;
  line-height: 1.9;
  font-size: 16px;
}

.section-header-wrap {
  max-width: 760px;
}

.section-header-wrap .section-desc {
  margin-top: 18px;
}

/* CATEGORY TABS */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.filter-btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid #dfe8e2;
  background: white;
  color: #435248;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(20, 50, 30, .03);
}

.filter-btn:hover {
  border-color: #16a34a;
  color: #16a34a;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #16a34a, #84cc16);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(22, 163, 74, .25);
}

/* MASONRY GRID FOR DIFFERENT IMAGE DIMENSIONS */
.gallery-masonry {
  columns: 3 340px;
  column-gap: 28px;
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 28px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(22, 163, 74, 0.08);
  box-shadow: 0 10px 30px rgba(10, 45, 25, 0.04);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.2);
}

.gallery-item-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #16a34a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-hover-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.gallery-hover-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item:hover .gallery-hover-logo {
  transform: scale(1.08);
  background: white;
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.35);
}

.gallery-item-title {
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.gallery-item-caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}

/* VIDEOS SECTION */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.video-card {
  border-radius: 36px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(22, 163, 74, 0.08);
  box-shadow: 0 15px 40px rgba(10, 45, 25, 0.05);
  transition: all 0.4s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(22, 163, 74, 0.12);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-info {
  padding: 32px;
}

.video-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.video-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #617067;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 1100px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption-box {
  margin-top: 20px;
  text-align: center;
  color: white;
}

.lightbox-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.lightbox-caption {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(34, 197, 94, 0.8);
  border-color: transparent;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

/* CTA */
.cta-box {
  position: relative;
  padding: 110px 80px;
  border-radius: 50px;
  overflow: hidden;
  background: linear-gradient(135deg, #16a34a, #84cc16);
  color: white;
  text-align: center;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .3;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 5vw, 84px);
  line-height: .95;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.cta-desc {
  margin: 26px auto 40px;
  max-width: 720px;
  line-height: 1.9;
  font-size: 17px;
  color: rgba(255, 255, 255, .92);
}

.btn-secondary {
  height: 66px;
  padding: 0 36px;
  border-radius: 22px;
  border: 1px solid #dfe8e2;
  background: white;
  color: #17221b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .4s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .gallery-masonry {
    columns: 2 300px;
  }
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 130px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: 46px;
  }
  .section {
    padding: 70px 0;
  }
  .gallery-masonry {
    columns: 1 100%;
  }
  .cta-box {
    padding: 70px 24px;
  }
  .lightbox-nav {
    display: none;
  }
}
