:root {
  --primary-color: #ffa500;
  --secondary-color: #a6a6a6;
  --background-color: #212121;
  --text-color: #ffffff;
}
html {
  scroll-behavior: auto;
}
body {
  font-family: "Tajawal", sans-serif;
  background-color: #000000;
  color: var(--text-color);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.bento-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bento-item:hover {
  box-shadow: 0 0 20px rgba(255, 166, 0, 0.3);
  transform: translateY(-4px);
  z-index: 10;
}
.glass-card {
  background: rgba(26, 22, 15, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 166, 0, 0.1);
}
.nav-item {
  position: relative;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
}

.nav-item::before,
.nav-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(transparent, var(--secondary-color));
  z-index: -1;
  opacity: 0;
  transition: all 0.4s ease-out;
}

.nav-item::before {
  top: 0;
  left: 0;
}

.nav-item::after {
  bottom: 0;
  right: 0;
}
.nav-item:hover {
  color: var(--primary-color);
  transition: color 0.4s ease-out;
}

.nav-item:hover::before,
.nav-item:hover::after {
  width: 200%;
  height: 200%;
  opacity: 0.6;
  transition: all 0.4s ease-out;
}

.nav-item:hover::before {
  top: -50%;
  left: -50%;
}

.nav-item:hover::after {
  bottom: -50%;
  right: -50%;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
}

/* Overlay */
.preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.preview-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.gallery-img {
  cursor: zoom-in;
}

/* Remove default crossfade */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

/* Animate image morph smoothly */
::view-transition-group(*) {
  animation-duration: 200ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
