/* ==========================================================
   ISACON Gujarat 2025 – Home showcase + Gallery page styles
   ========================================================== */
:root {
  --isa-navy: #2e3093;
  --isa-navy-deep: #12134a;
  --isa-accent: #f7941d;
  --isa-pink: #e8336d;
}

/* ---------- Home: showcase section ---------- */
.isacon-showcase {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(232, 51, 109, .25), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(247, 148, 29, .18), transparent 60%),
    linear-gradient(135deg, var(--isa-navy-deep) 0%, #1d1f6e 55%, var(--isa-navy) 100%);
}
.isacon-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}
.isacon-showcase .container { position: relative; z-index: 1; }

.isacon-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}
.isacon-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffd29c;
  margin-bottom: 14px;
}
.isacon-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--isa-accent), var(--isa-pink));
}
.isacon-title {
  font-family: "Poppins", sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #fff;
}
.isacon-title .grad {
  background: linear-gradient(90deg, #ffb35c, var(--isa-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.isacon-theme {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  max-width: 620px;
  margin: 0 0 22px;
}
.isacon-theme b { color: #fff; font-weight: 600; }
.isacon-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.isacon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.isacon-chip i { font-size: 18px; color: #ffb35c; }

.isacon-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, var(--isa-accent), var(--isa-pink));
  box-shadow: 0 12px 30px rgba(232, 51, 109, .35);
  transition: transform .3s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.isacon-cta i { font-size: 20px; transition: transform .3s ease; }
.isacon-cta:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(232, 51, 109, .5);
}
.isacon-cta:hover i { transform: translateX(4px); }

/* Bento grid */
.isacon-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
  margin-bottom: 18px;
}
.isacon-bento .t-a { grid-column: span 2; grid-row: span 2; }
.isacon-bento .t-c { grid-column: 4; grid-row: 1 / span 2; }

/* Shared tile */
.isacon-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: zoom-in;
  isolation: isolate;
}
.isacon-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.isacon-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18,19,74,.85) 100%);
  opacity: 0;
  transition: opacity .5s ease;
}
.isacon-tile .zoom {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--isa-navy);
  background: #fff;
  transform: scale(.4) rotate(-45deg);
  opacity: 0;
  transition: all .45s cubic-bezier(.2,.7,.2,1);
}
.isacon-tile:hover img { transform: scale(1.08); }
.isacon-tile:hover::after { opacity: 1; }
.isacon-tile:hover .zoom { transform: scale(1) rotate(0); opacity: 1; }

.isacon-badge {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 20px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--isa-accent), var(--isa-pink));
}

/* Marquee rows */
.isacon-marquee {
  position: relative;
  overflow: hidden;
  margin: 0 -15px;
  padding: 0 15px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.isacon-marquee + .isacon-marquee { margin-top: 18px; }
.isacon-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: isacon-scroll var(--dur, 70s) linear infinite;
}
.isacon-marquee.reverse .isacon-track { animation-direction: reverse; }
.isacon-marquee:hover .isacon-track { animation-play-state: paused; }
.isacon-track .isacon-tile {
  flex: 0 0 auto;
  height: 190px;
  width: 285px;
  border-radius: 14px;
}
.isacon-track .isacon-tile.portrait { width: 127px; }
@keyframes isacon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 9px)); }
}

/* Scroll reveal */
.isacon-reveal {
  opacity: 0;
  transform: translateY(40px) scale(.97);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.isacon-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Gallery page ---------- */
.isacon-gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
  margin-bottom: 50px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(232, 51, 109, .3), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(247, 148, 29, .22), transparent 60%),
    linear-gradient(135deg, var(--isa-navy-deep), var(--isa-navy));
}
.isacon-gallery-hero .isacon-eyebrow { justify-content: center; }
.isacon-gallery-hero .isacon-theme { margin-left: auto; margin-right: auto; }
.isacon-gallery-hero .isacon-chips { justify-content: center; }

.isacon-masonry {
  column-count: 4;
  column-gap: 18px;
}
.isacon-masonry .isacon-tile {
  margin-bottom: 18px;
  break-inside: avoid;
  border: 0;
  border-radius: 14px;
  background: #eef0fb;
  box-shadow: 0 10px 25px rgba(46, 48, 147, .08);
}
.isacon-masonry .isacon-tile img { height: auto; aspect-ratio: 3 / 2; }
.isacon-masonry .isacon-tile.portrait img { aspect-ratio: 2 / 3; }

.gallery-section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 70px 0 30px;
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--isa-navy);
}
.gallery-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(46,48,147,.35), transparent);
}

/* Lightbox polish */
.isacon-mfp.mfp-bg { background: #0b0c2e; opacity: .95; }
.isacon-mfp .mfp-figure:after { box-shadow: none; background: transparent; }
.isacon-mfp img.mfp-img { border-radius: 10px; padding: 40px 0; }
.isacon-mfp .mfp-counter { font-family: "Poppins", sans-serif; }
.isacon-mfp.mfp-ready .mfp-content { animation: isacon-pop .35s ease; }
@keyframes isacon-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .isacon-title { font-size: 42px; }
  .isacon-bento { grid-auto-rows: 190px; }
  .isacon-masonry { column-count: 3; }
}
@media (max-width: 767px) {
  .isacon-showcase { padding: 70px 0 60px; }
  .isacon-title { font-size: 32px; }
  .isacon-theme { font-size: 15px; }
  .isacon-head { margin-bottom: 30px; }
  .isacon-chips { gap: 8px; }
  .isacon-chip { font-size: 13px; padding: 6px 12px; }
  .isacon-chip i { font-size: 16px; }
  .isacon-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
  .isacon-bento .t-c { grid-column: 1; grid-row: 3 / span 2; }
  .isacon-bento .t-b { grid-column: 2; grid-row: 3; }
  .isacon-bento .t-d { grid-column: 2; grid-row: 4; }
  .isacon-track { gap: 12px; }
  .isacon-track .isacon-tile { height: 130px; width: 195px; }
  .isacon-track .isacon-tile.portrait { width: 87px; }
  .isacon-marquee + .isacon-marquee { margin-top: 12px; }
  @keyframes isacon-scroll { to { transform: translateX(calc(-50% - 6px)); } }
  .isacon-masonry { column-count: 2; column-gap: 12px; }
  .isacon-masonry .isacon-tile { margin-bottom: 12px; }
  .isacon-tile .zoom { width: 36px; height: 36px; font-size: 18px; right: 10px; bottom: 10px; }
  .isacon-badge { left: 12px; top: 12px; font-size: 10px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .isacon-track { animation: none; }
  .isacon-marquee { overflow-x: auto; }
  .isacon-reveal { opacity: 1; transform: none; transition: none; }
}
