/* ============================
   Brian Wallack — Landing Page
   Apple-inspired dark theme
   ============================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-wordmark {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f7;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  color: #a1a1a6;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #f5f5f7;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #f5f5f7;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
  position: absolute;
  left: 0;
}

.nav-toggle span:first-child {
  top: 4px;
}

.nav-toggle span:last-child {
  bottom: 4px;
}

.nav-toggle.open span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.1rem;
  color: #f5f5f7;
  text-decoration: none;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #a1a1a6;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---- Sections ---- */

.section {
  padding: 100px 0;
}

.section-alt {
  background: #111;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1a6;
  text-align: center;
  margin-bottom: 48px;
}

/* ---- About / Bio ---- */

.bio {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #d1d1d6;
  text-align: center;
}

/* ---- Services ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.95rem;
  color: #a1a1a6;
  line-height: 1.6;
}

/* ---- Video ---- */

.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1d1d1f;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Connect ---- */

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #f5f5f7;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.6;
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.connect-email {
  text-align: center;
}

.connect-email a {
  font-size: 1rem;
  color: #a1a1a6;
  text-decoration: none;
  transition: color 0.2s;
}

.connect-email a:hover {
  color: #f5f5f7;
}

/* ---- Footer ---- */

.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: #6e6e73;
}

/* ---- Fade-in Animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: 80vh;
    padding: 100px 24px 80px;
  }

  .section {
    padding: 72px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .social-links {
    gap: 20px;
  }
}

@media (max-width: 375px) {
  .hero-tagline {
    font-size: 0.95rem;
  }

  .bio {
    font-size: 1rem;
  }
}
