* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Hero storefront background overlay for text readability */
.hero-storefront-bg {
  position: relative;
}

.hero-storefront-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, 
      rgba(10, 10, 10, 0.75) 0%, 
      rgba(10, 10, 10, 0.55) 30%, 
      rgba(10, 10, 10, 0.65) 60%, 
      rgba(10, 10, 10, 0.85) 100%
    );
  z-index: 1;
}

/* Hero text content readability */
.hero-content-wrapper {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-content-wrapper h1 {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9), 0 4px 60px rgba(0, 0, 0, 0.6);
}

.hero-content-wrapper p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9), 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-badge {
  background: rgba(10, 10, 10, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  background: rgba(10, 10, 10, 0.5);
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-description {
  background: rgba(10, 10, 10, 0.45);
  padding: 12px 20px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-block;
}

/* Storefront photo in Space section */
.storefront-photo-wrapper {
  position: relative;
}

.storefront-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
}

/* Circuit board grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}

/* Floating particles */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #F59E0B;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-200px) scale(0.5); }
}

/* Glow animation for headline */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.15), 0 0 60px rgba(245, 158, 11, 0.05); }
  50% { text-shadow: 0 0 40px rgba(245, 158, 11, 0.3), 0 0 80px rgba(245, 158, 11, 0.1); }
}

.glow-text {
  animation: glowPulse 4s ease-in-out infinite;
}

/* Animated gradient border */
@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-border {
  position: relative;
  background: #141414;
  border-radius: 12px;
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, #F59E0B, transparent, #D97706, transparent, #FBBF24);
  background-size: 300% 300%;
  animation: borderRotate 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

/* Mobile menu animation */
.mobile-menu-enter {
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu-active {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.mobile-menu-exit {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.2s ease;
}

/* Toast animation */
@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.toast-in {
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-out {
  animation: toastSlideOut 0.3s ease forwards;
}

/* Amber button hover effect */
.btn-amber {
  position: relative;
  overflow: hidden;
}
.btn-amber::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-amber:hover::after {
  opacity: 1;
}

/* Workspace photo styling */
.workspace-photo-wrapper {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.1);
  transition: border-color 0.5s ease;
}

.workspace-photo-wrapper:hover {
  border-color: rgba(245, 158, 11, 0.25);
}

.workspace-photo-wrapper img {
  transition: transform 0.7s ease;
}

.workspace-photo-wrapper:hover img {
  transform: scale(1.02);
}

.workspace-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent);
}

/* Community photo styling */
.community-photo-wrapper {
  border: 1px solid rgba(245, 158, 11, 0.1);
  transition: border-color 0.5s ease;
}

.community-photo-wrapper:hover {
  border-color: rgba(245, 158, 11, 0.25);
}

/* ─── Featured Testimonial ─── */
.featured-testimonial {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-testimonial-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.featured-testimonial-card {
  background: #1a1a1a;
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(245, 158, 11, 0.04),
    inset 0 1px 0 rgba(245, 158, 11, 0.08);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.featured-testimonial-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(245, 158, 11, 0.07),
    inset 0 1px 0 rgba(245, 158, 11, 0.12);
}

.featured-quote-mark {
  transition: color 0.3s ease;
}

.featured-testimonial-card:hover .featured-quote-mark {
  color: rgba(245, 158, 11, 0.45);
}

/* Map container styling */
.map-container {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  border: 1px solid rgba(245, 158, 11, 0.1);
  position: relative;
}

/* Leaflet overrides for dark theme */
.leaflet-container {
  background: #0f0f0f !important;
  font-family: 'JetBrains Mono', monospace !important;
}

.leaflet-control-zoom a {
  background: #1a1a1a !important;
  color: #F59E0B !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
  background: #222 !important;
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.leaflet-control-attribution {
  background: rgba(10, 10, 10, 0.8) !important;
  color: #666 !important;
  font-size: 10px !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 4px 0 0 0 !important;
}

.leaflet-control-attribution a {
  color: #F59E0B !important;
}

/* Custom marker */
.custom-map-marker {
  background: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 14px;
  height: 14px;
  background: #F59E0B;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6), 0 0 30px rgba(245, 158, 11, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.marker-ping {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: markerPing 2s ease-out infinite;
  z-index: 1;
}

@keyframes markerPing {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Custom popup */
.dark-popup .leaflet-popup-content-wrapper {
  background: #1a1a1a !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.08) !important;
  color: #F5F5F5 !important;
  padding: 4px 8px !important;
}

.dark-popup .leaflet-popup-tip {
  background: #1a1a1a !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-top: none !important;
  border-left: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.dark-popup .leaflet-popup-content {
  margin: 8px 10px !important;
  line-height: 1.5 !important;
}

.custom-popup strong {
  display: block;
  margin-bottom: 2px;
}

/* Counter pulse */
@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}