/* Navbar Overrides */
.nav-link.active,
.nav-link:hover {
  color: #198754 !important;
  font-weight: 600;
}

.navbar-brand img {
  height: 120px;            /* match your logo size */
  width: auto;
  animation: pulse 3s infinite ease-in-out;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  z-index: 1;
  height: 600px;            /* fixed height */
}

.hero-bg {
  position: absolute;       /* covers the hero without stretching it */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  animation: fadeInDown 3s ease-out forwards;
  opacity: 0;
}

/* Waves */
.hero-wave {
  display: block;
  width: 100%;
  height: 90px;
  position: absolute;
  left: 0;
  pointer-events: none;
  z-index: 5;               /* above the bg but below the text */
}

.hero-wave-top {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  transform: scaleY(-1);
  animation: waveMovementTop 2s infinite ease-in-out;
}

.hero-wave-bottom {
  bottom: 0;
  animation: waveMovement 2s infinite ease-in-out;
}

/* SEO Article Styling */
.seo-article {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.seo-article h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #198754; /* Bootstrap success green for emphasis */
  text-align: center;
}

.seo-article p {
  margin-bottom: 1.2rem;
}

.seo-article strong {
  font-weight: 600;
  color: #155724; /* Slightly darker green for strong keywords */
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  aspect-ratio: 4 / 3;       /* enforces a uniform thumbnail shape */
  display: block;
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fill & crop to avoid white bars */
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Hide items beyond initial batch */
.gallery-item.hidden {
  display: none;
}

/* Footer Tweaks */
footer {
  text-align: center;
}

/* Animations */
@keyframes fadeInDown {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes waveMovement {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

@keyframes waveMovementTop {
  0%   { transform: scaleY(-1) translateY(0); }
  50%  { transform: scaleY(-1) translateY(10px); }
  100% { transform: scaleY(-1) translateY(0); }
}
