/* === Responsive & Animation Enhancements === */
:root{
  --container: 1100px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --ease: cubic-bezier(.22,1,.36,1);
}

/* Fluid typography */
html { font-size: 16px; }
@media (max-width: 768px){ html { font-size: 15px; } }
@media (max-width: 480px){ html { font-size: 14px; } }

* { box-sizing: border-box; }

img{ max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container{
  width: min(96%, var(--container));
  margin-inline: auto;
}

/* Simple responsive grids */
.grid{
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid.cols-3 > * { grid-column: span 4; }
.grid.cols-4 > * { grid-column: span 3; }
.grid.cols-2 > * { grid-column: span 6; }
@media (max-width: 900px){
  .grid.cols-4 > *, .grid.cols-3 > * { grid-column: span 6; }
}
@media (max-width: 600px){
  .grid > * { grid-column: 1 / -1; }
}

/* Cards */
.card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* Page transition */
body{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.ready{
  opacity: 1;
  transform: none;
}

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in{
  opacity: 1;
  transform: none;
}

/* Lightbox */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}
.lightbox-overlay.open{ display: flex; }
.lightbox-overlay img{
  max-width: 100%;
  max-height: 90vh;
  box-shadow: var(--shadow);
  border-radius: 12px;
}
.lightbox-overlay .lb-close{
  position: absolute;
  top: 1rem; inset-inline-end: 1rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .5rem .75rem;
  cursor: pointer;
  font-size: 1rem;
}

/* Helper utilities */
.hide-on-mobile{ display: block; }
@media (max-width: 600px){
  .hide-on-mobile{ display: none; }
}
.show-on-mobile{ display: none; }
@media (max-width: 600px){
  .show-on-mobile{ display: initial; }
}

/* Smooth anchor scroll */
html{ scroll-behavior: smooth; }
/* === Nav (mobile) === */
.navbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
}
nav[aria-label] ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 1.25rem; align-items: center;
}
nav[aria-label] a{
  text-decoration: none;
  color: inherit;
  position: relative;
}
nav[aria-label] a::after{
  content:"";
  position: absolute;
  inset-inline: 0; bottom: -6px;
  height: 2px; transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
  background: currentColor;
  opacity: .6;
}
nav[aria-label] a:hover::after, nav[aria-label] a[aria-current="page"]::after{
  transform: scaleX(1);
}

#navToggle{
  display: none;
  border: 0; background: transparent;
  font-size: 1.5rem; line-height: 1;
  padding: .5rem .75rem; border-radius: 12px;
}
@media (max-width: 768px){
  #navToggle{ display: inline-flex; align-items: center; gap: .5rem; }
  nav[aria-label] ul{
    display: none;
    flex-direction: column;
    padding: .75rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: .5rem;
  }
  nav[aria-label].open ul{ display: flex; }
}

/* === Generic slider === */
.slider, [data-slider]{
  position: relative;
  overflow: hidden;
}
.slider-track{
  display: flex;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.slide{ min-width: 100%; }
.slider-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(255,255,255,.7);
  padding: .5rem .75rem; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow);
}
.slider-arrow.prev{ left: .75rem; }
.slider-arrow.next{ right: .75rem; }
.slider-dots{
  position: absolute; bottom: .75rem; left: 0; right: 0;
  display: flex; gap: .5rem; justify-content: center;
}
.slider-dots button{
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: #ddd; cursor: pointer;
}
.slider-dots button.active{ background: #333; }

/* === Minor polish === */
img.zoomable{ cursor: zoom-in; }
