/* =========================================================
   UP PRO HANDBALL LEAGUE
   GALLERY PAGE
   WHITE + ORANGE PROFESSIONAL THEME
   ========================================================= */

:root {
  --orange: #f47b20;
  --orange-dark: #d85d0b;
  --orange-light: #fff1e7;
  --dark: #202020;
  --text: #555;
  --white: #ffffff;
  --border: #e7e7e7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   GENERAL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--dark);
  overflow-x: clip;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}

.nav-links > li > a {
  transition: 0.3s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--orange);
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 20px;
  transform: translateX(-50%);
  transition: 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 65%;
}

/* =========================================================
   GALLERY HERO
   ========================================================= */

.gallery-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.90),
      rgba(15, 15, 15, 0.60),
      rgba(244, 123, 32, 0.30)
    ),
    url("../images/fixtures-banner.jpeg")
    center/cover no-repeat;
}

/* Decorative circle */

.gallery-hero::before {
  content: "";
  position: absolute;

  width: 340px;
  height: 340px;

  right: -140px;
  top: -130px;

  border: 60px solid rgba(244, 123, 32, 0.18);
  border-radius: 50%;

  animation: rotateCircle 16s linear infinite;
}

.gallery-hero::after {
  content: "";
  position: absolute;

  width: 220px;
  height: 220px;

  left: -80px;
  bottom: -90px;

  background: radial-gradient(circle, rgba(244, 123, 32, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.gallery-hero .container {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
}

.gallery-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.gallery-hero p {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 600px;
  line-height: 1.6;
}

/* =========================================================
   GALLERY SECTION
   ========================================================= */

.gallery-section {
  padding: 75px 0;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.94)
    ),
    url("../images/aboutus-banner.jpeg")
    center/cover fixed no-repeat;
}

/* =========================================================
   FILTER BUTTONS
   ========================================================= */

.filters-container {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 45px;
}

.filter-btn {
  border: 1px solid #ddd;

  background: #fff;
  color: #555;

  padding: 10px 18px;

  border-radius: 30px;

  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.filter-btn:hover {
  color: var(--orange);
  border-color: var(--orange);

  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--orange);
  color: #fff;

  border-color: var(--orange);

  box-shadow: 0 7px 18px rgba(244, 123, 32, 0.22);
}

.filter-btn.active:hover {
  background: var(--orange-dark);
  color: #fff;
}

/* =========================================================
   GALLERY GRID
   ========================================================= */

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

/* =========================================================
   GALLERY ITEM
   ========================================================= */

.gallery-item {
  position: relative;

  height: 300px;

  overflow: hidden;

  border-radius: 16px;

  background: #eee;

  box-shadow: var(--shadow);

  cursor: pointer;

  opacity: 1;

  transform: scale(1);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-7px);

  box-shadow:
    0 18px 40px rgba(244, 123, 32, 0.18);
}

/* =========================================================
   HIDDEN ITEMS
   ========================================================= */

.gallery-item.hidden {
  display: none;
}

/* =========================================================
   IMAGE
   ========================================================= */

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition:
    transform 0.6s ease,
    filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.10);
  filter: brightness(0.75);
}

/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.gallery-item-overlay {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 65px 20px 20px;

  background:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.88)
    );

  transform: translateY(10px);

  transition:
    transform 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

/* =========================================================
   TAG
   ========================================================= */

.gallery-tag {
  display: inline-block;

  color: #fff;
  background: var(--orange);

  padding: 5px 10px;

  border-radius: 20px;

  font-size: 0.68rem;
  font-weight: 600;

  margin-bottom: 7px;
}

/* =========================================================
   TITLE
   ========================================================= */

.gallery-item-title {
  display: block;

  color: #fff;

  font-size: 1.05rem;
  font-weight: 700;

  line-height: 1.4;
}

/* =========================================================
   ORANGE TOP BORDER
   ========================================================= */

.gallery-item::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: var(--orange);

  z-index: 5;

  transform: scaleX(0);

  transform-origin: left;

  transition: transform 0.4s ease;
}

.gallery-item:hover::before {
  transform: scaleX(1);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #181818;
}

.footer-links a {
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 5px;
}

.footer-col h4::after {
  content: "";

  display: block;

  width: 35px;
  height: 3px;

  margin-top: 8px;

  background: var(--orange);

  border-radius: 20px;
}

.social-icons a {
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: var(--orange);
  color: #fff;

  transform: translateY(-4px);
}

.footer-contact i {
  color: var(--orange);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateCircle {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    height: 280px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .gallery-hero {
    min-height: 320px;
    text-align: center;
  }

  .gallery-hero h1 {
    font-size: 2.5rem;
  }

  .gallery-hero p {
    font-size: 0.95rem;
  }

  .gallery-section {
    padding: 55px 0;

    background-attachment: scroll;
  }

  .filters-container {
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 8px 13px;
    font-size: 0.78rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .gallery-item {
    height: 300px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .gallery-hero {
    min-height: 285px;
  }

  .gallery-hero h1 {
    font-size: 2.2rem;
  }

  .gallery-hero p {
    font-size: 0.9rem;
  }

  .gallery-section {
    padding: 45px 0;
  }

  .filters-container {
    justify-content: flex-start;
  }

  .filter-btn {
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  .gallery-item {
    height: 260px;
  }

  .gallery-item-title {
    font-size: 0.95rem;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}