/* =============================================================================
   ANU GYM - Non-Critical CSS (Below-the-fold)
   Styles loaded after critical rendering path
   ============================================================================= */

/* Extended CSS Variables */
:root {
  --color-black-light: #111111;
  --color-black-lighter: #1a1a1a;
  --color-gray-dark: #222222;
  --color-gray: #333333;
  --color-gray-mid: #666666;
  --color-white-off: #f5f5f5;
  --color-red-dark: #d50000;
  --color-red-glow: rgba(255, 23, 68, 0.6);
  --color-orange: #ff6d00;
  --color-blue-accent: #00e5ff;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --shadow-glow: 0 0 20px var(--color-red-glow);
  --shadow-glow-intense: 0 0 40px var(--color-red-glow), 0 0 80px var(--color-red-glow);
}

/* Extended Typography */
h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(2rem, 6vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
  font-family: var(--font-body);
  color: var(--color-gray-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.section {
  padding: var(--space-3xl) 0;
}

.section--dark {
  background-color: var(--color-black-light);
}

/* Enhanced Header Effects */
.header__logo-img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(184, 15, 26, 0.4));
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(184, 15, 26, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(184, 15, 26, 0.8)) drop-shadow(0 0 24px rgba(184, 15, 26, 0.6));
  }
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow:
      0 0 5px var(--color-white),
      0 0 10px var(--color-red),
      0 0 20px var(--color-red);
    border-color: rgba(255, 23, 68, 0.4);
  }
  50% {
    text-shadow:
      0 0 2px var(--color-white),
      0 0 5px var(--color-red),
      0 0 10px var(--color-red);
    border-color: rgba(255, 23, 68, 0.2);
  }
}

.header__badge {
  animation: neonPulse 3s ease-in-out infinite;
}

.nav__toggle:hover span {
  background: var(--color-red);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  animation: fadeInUp 0.8s ease forwards;
}

.hero__title {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero__cta {
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-mid);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gray-mid), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* About Section */
.about {
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__content h2 {
  margin-bottom: var(--space-lg);
}

.about__content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.about__feature-icon {
  color: var(--color-red);
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__feature-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}

.about__image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.about__image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-red);
  border-radius: 4px;
  opacity: 0.3;
  pointer-events: none;
}

.about__image img {
  width: 100%;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.03);
}

/* Video container for About section */
.about__video-container {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-black-light);
}

.about__video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.about__video-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-red);
  border-radius: 4px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

/* Features/Environment Section */
.features {
  background: var(--color-black-light);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.features__header h2 {
  margin-bottom: var(--space-md);
}

.features__header p {
  max-width: 600px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-black);
  border: 1px solid var(--color-gray-dark);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-red);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
}

.feature-card__icon svg {
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-card__icon svg {
  transform: scale(1.1);
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--color-gray-light);
}

/* Gallery Section */
.gallery__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: var(--space-md);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item img,
.gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img,
.gallery__item:hover video {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.6) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

/* Video Play Button */
.gallery__item--video::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--color-white);
  background: rgba(255, 23, 68, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-base);
}

.gallery__item--video:hover::before {
  background: var(--color-red);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.gallery-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.gallery-modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
  z-index: 2;
}

.gallery-modal__close:hover {
  color: var(--color-red);
}

.gallery-modal__prev,
.gallery-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--color-red);
  border-radius: 50%;
  color: var(--color-white);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.gallery-modal__prev {
  left: -70px;
}

.gallery-modal__next {
  right: -70px;
}

.gallery-modal__prev:hover,
.gallery-modal__next:hover {
  background: var(--color-red);
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal__image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85vw;
  height: 70vh;
  max-width: 1200px;
  max-height: 800px;
}

.gallery-modal__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal__caption {
  color: var(--color-white);
  text-align: center;
  margin-top: var(--space-md);
  font-size: 1.1rem;
  max-width: 80%;
}

.gallery-modal__counter {
  color: var(--color-gray-light);
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.gallery-modal__current {
  color: var(--color-red);
  font-weight: 600;
}

/* Owner/Community Section */
.community {
  background: linear-gradient(135deg, var(--color-black-light) 0%, var(--color-black) 100%);
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 23, 68, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.community__image {
  position: relative;
}

.community__image img {
  width: 100%;
  border-radius: 4px;
}

.community__image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: 20px;
  top: 20px;
  border: 2px solid var(--color-red);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.3;
}

.community__content h2 {
  margin-bottom: var(--space-lg);
}

.community__content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.community__quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-red);
  border-left: 3px solid var(--color-red);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
}

/* Location Section */
.location {
  background: var(--color-black-light);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.location__info h2 {
  margin-bottom: var(--space-lg);
}

.location__details {
  margin-bottom: var(--space-xl);
}

.location__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.location__icon {
  color: var(--color-red);
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.location__text h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--space-xs);
}

.location__text p {
  color: var(--color-white);
  font-size: 1rem;
}

.location__landmark {
  background: var(--color-black);
  border: 1px solid var(--color-gray-dark);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.location__landmark h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.location__landmark p {
  font-size: 0.9rem;
}

.location__map {
  background: var(--color-gray-dark);
  border-radius: 4px;
  overflow: hidden;
  min-height: 400px;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-red-dark) 0%, var(--color-red) 100%);
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90" opacity="0.03">💪</text></svg>');
  background-size: 100px;
  opacity: 0.5;
}

.cta__content {
  position: relative;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn--primary {
  background: var(--color-white);
  color: var(--color-red);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cta .btn--primary:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Footer */
.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-gray-dark);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(184, 15, 26, 0.4));
  animation: pulseGlow 2s ease-in-out infinite;
}

.footer__logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--color-red);
}

.footer__brand p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-gray-dark);
  border-radius: 50%;
  color: var(--color-gray-light);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.footer__column h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__column ul li {
  margin-bottom: var(--space-sm);
}

.footer__column ul a {
  font-size: 0.9rem;
  color: var(--color-gray-light);
}

.footer__column ul a:hover {
  color: var(--color-red);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray-dark);
}

.footer__copyright {
  font-size: 0.85rem;
  color: var(--color-gray-mid);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: 0.85rem;
  color: var(--color-gray-mid);
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* Waitlist Modal */
.waitlist-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.waitlist-modal.active {
  display: flex;
}

.waitlist-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.waitlist-modal__content {
  position: relative;
  background: var(--color-black);
  border: 2px solid var(--color-red);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  padding: var(--space-2xl);
}

.waitlist-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
  z-index: 2;
  line-height: 1;
}

.waitlist-modal__close:hover {
  color: var(--color-red);
}

.waitlist-modal__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.waitlist-modal__header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.waitlist-modal__header p {
  color: var(--color-gray-light);
  font-size: 1rem;
  line-height: 1.5;
}

/* Form Styles */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select {
  background: var(--color-black-light);
  border: 1px solid var(--color-gray-dark);
  border-radius: 4px;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 2px rgba(255, 23, 68, 0.2);
}

.form-group input::placeholder {
  color: var(--color-gray-light);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--color-black-light);
  color: var(--color-white);
}

/* Checkbox styling */
.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-group--checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 2px;
  accent-color: var(--color-red);
}

.form-group--checkbox label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  cursor: pointer;
}

.waitlist-form__submit {
  margin-top: var(--space-md);
  align-self: center;
}

.waitlist-form__note {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  text-align: center;
  line-height: 1.4;
  margin-top: var(--space-md);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 1200px) {
  .footer__logo img {
    width: 160px;
  }

  .footer__logo span {
    font-size: 2rem;
  }

  .waitlist-modal__content {
    max-width: 800px;
    padding: var(--space-2xl) var(--space-3xl);
  }

  .waitlist-modal__header h2 {
    font-size: 2.5rem;
  }

  .waitlist-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-xl);
  }

  .form-group:nth-child(5),
  .form-group:nth-child(6),
  .waitlist-form__submit,
  .waitlist-form__note {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .about__grid,
  .community__grid,
  .location__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .community__image {
    order: -1;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 250px);
  }

  .gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .nav.active .nav__list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-bottom: 2px solid var(--color-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav.active .nav__list li {
    margin: var(--space-sm) 0;
  }

  .nav.active .nav__list .btn {
    margin-top: var(--space-md);
    margin-left: 0;
    text-align: center;
    display: inline-block;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .hero__content {
    padding: var(--space-lg);
  }

  .about__features {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery__item:first-child {
    grid-column: span 1;
  }

  .gallery__item {
    height: 250px;
  }

  .gallery-modal__prev,
  .gallery-modal__next {
    width: 40px;
    height: 40px;
  }

  .gallery-modal__prev {
    left: 10px;
  }

  .gallery-modal__next {
    right: 10px;
  }

  .gallery-modal__close {
    top: 10px;
    right: 10px;
  }

  .gallery-modal__image-container {
    width: 95vw;
    height: 60vh;
    max-width: 100%;
    max-height: 60vh;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .waitlist-modal {
    padding: var(--space-md);
  }

  .waitlist-modal__content {
    padding: var(--space-xl);
    max-height: 95vh;
    max-width: 500px;
  }

  .waitlist-modal__header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .location__map div {
    width: 100% !important;
    height: 300px !important;
  }

  .waitlist-modal__content {
    padding: var(--space-lg);
    max-width: 100%;
  }

  .form-group input,
  .form-group select {
    padding: var(--space-sm);
    font-size: 0.9rem;
  }

  @media (max-width: 360px) {
    .about__features {
      grid-template-columns: 1fr;
    }
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}