html, body {
  width: 100%;
  overflow-x: hidden;          /* no horizontal gutter on iOS */
  -webkit-text-size-adjust: 100%;
}

*{
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/* Banner styling */
.banner {
  width: 100%;
  height: 100%; /* Ensures banner always takes full height of viewport */
  background-size: cover; /* Ensures the background covers the whole area */
  background-position: center;
  background-repeat: repeat-y;
  background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url(../pics/background.jpg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 75px;
}

/* Navbar styling */
.navbar {
  width: 85%;
  margin-top: 10px;
  padding-top: 20px;
  padding-bottom: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.signature {
  width: 150px; /* Smaller for responsiveness */
  cursor: pointer;
}


.navbar ul li {
  display: inline-block;
  margin: 0 20px;
  position: relative;
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
}

.navbar ul li::after {
  content: '';
  height: 3px;
  width: 0;
  background: #f06553;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: 0.4s;
}

.navbar ul li:hover::after {
  width: 100%;
}
.contentone {
    width: 100%;
    text-align: center;
    margin: auto; /* Center vertically */
    color: #fff;
    font-size: 250%;
    margin-bottom: 15px;
}

.contentone h1 {
    font-size: 100px;
    margin: 10px 0;
    padding: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 90%;
  margin: 0 auto 200px;
  justify-content: center;
  overflow: visible;           /* let the enlarged card spill without scrollbars */
  isolation: isolate;          /* its own stacking context (helps z-index) */
}
.site-footer{
  position: fixed;            /* stays at the bottom even when scrolling */
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom)); /* friendly on iPhone notch */
  color: #fff;
  font-size: 14px;
  letter-spacing: .3px;
  opacity: .85;
  padding: 6px 10px; /* subtle contrast on busy photos */
  backdrop-filter: blur(4px);
  z-index: 50;
}

.card {
  flex: 1 1 calc(33.333% - 30px);
  min-width: 200px;
  max-width: 300px;
  height: 350px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.2s ease;
  z-index: 1;
  overflow: hidden;
  transform-origin: center center;   /* grow from the center (less “push”) */
  will-change: transform;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Zoom on hover */
.card:hover {
  transform: scale(2);
  z-index: 2;
}

/* Blur other cards */
.cards:hover > .card:not(:hover) {
  filter: blur(2px);
  transform: scale(0.9);
}

/* Hover text from data-caption */
.card::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-size: 14px;
  white-space: nowrap;
  text-align: center;
}

.card:hover::after {
  opacity: 1;
}

/* Responsive fallback for mobile */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(1.8);     /* slightly less aggressive than 2 = fewer overflows */
    z-index: 2;
  }
  .cards:hover > .card:not(:hover) {
    filter: blur(2px);
    transform: scale(0.92);
  }
}

/* On touch devices, don't use sticky :hover */
@media (hover: none) {
  .card:hover { transform: none; }
  .cards:hover > .card:not(:hover) { filter: none; transform: none; }
}