/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.nav-links a:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Animated background pattern */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image:
      linear-gradient(90deg, #333 1px, transparent 1px),
      linear-gradient(#333 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #1a1a1a;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  height: 84px;
  background: #000;
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 260px;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #666;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: #ccc;
}

/* CTA buttons (shared look with the rest of the site) */
.cta {
  display: inline-block;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  background: #ffffff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  white-space: nowrap;
  text-align: center;
}

.cta:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
}

.cta-secondary:hover {
  background: #111;
  border-color: #555;
}

/* Footer */
footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.footer-section h4 {
  color: #fff;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #999;
  text-decoration: none;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid #1a1a1a;
  color: #808080;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles for accessibility */
.nav-links a:focus,
.mobile-menu-toggle:focus,
.cta:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .background-pattern { animation: none; }
  .fade-in { transition: none; opacity: 1; transform: translateY(0); }
  html { scroll-behavior: auto; }
}

/* Tablets */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }

  body.mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    z-index: 1001;
    width: 100%;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    padding: 1rem clamp(1rem, 5vw, 2rem);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .logo { height: 64px; }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links li:last-child { border-bottom: none; }

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

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
}
