/* src/index.css */
:root {
  --nm-bg: #fefefe;
  --nm-fg: #101010;
  --nm-muted: #101010b3;
  --nm-border: #1010101f;
  --nm-hero-fg: #fff;
  --nm-hero-muted: #ffffffe0;
  --nm-hero-shadow: #00000080;
  background-color: var(--nm-bg);
  color: var(--nm-fg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--nm-bg);
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.nm-page {
  min-height: 100vh;
}

.nm-page--scrolled {
  --nm-social-fg: #1010108c;
  --nm-social-fg-hover: #101010f2;
}

.nm-social {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  bottom: 22px;
  left: 22px;
}

.nm-socialList {
  list-style: none;
  display: flex;
  pointer-events: auto;
  flex-direction: column;
  align-items:  center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nm-socialLink {
  display: inline-flex;
  color: var(--nm-social-fg, #ffffffb8);
  box-shadow: none;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  width: 54px;
  height: 54px;
  padding: 5px;
  transition: transform .16s, opacity .16s, color .2s;
}

.nm-socialLink:hover {
  opacity: 1;
  color: var(--nm-social-fg-hover, #fffffffa);
  transform: scale(1.05);
}

.nm-socialLink--disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.nm-socialLink--disabled:hover {
  opacity: .35;
  transform: none;
}

.nm-socialIcon {
  display: inline-flex;
  width: 40px;
  height: 40px;
}

.nm-socialIcon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nm-header {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
}

.nm-nav {
  pointer-events: auto;
  display: flex;
  background: none;
  justify-content: space-between;
  align-items:  center;
  padding: 24px 50px;
  transition: background-color .22s, box-shadow .22s, backdrop-filter .22s, padding .22s;
}

.nm-header--scrolled .nm-nav {
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--nm-border);
  background-color: #fefefeeb;
  padding: 12px 50px;
}

.nm-navLinks {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nm-navLinks a, .nm-navContact {
  color: var(--nm-hero-fg);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .25s;
  font-size: 16px;
  font-weight: 400;
}

.nm-header--scrolled .nm-navLinks a, .nm-header--scrolled .nm-navContact {
  color: var(--nm-fg);
}

.nm-navLinks a:hover, .nm-navContact:hover {
  opacity: .75;
}

.nm-hero {
  position: relative;
  display: flex;
  text-align: center;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100vh;
}

.nm-hero:before {
  content: "";
  position: absolute;
  z-index: 1;
  background: linear-gradient(#00000040 0%, #000000b8 100%);
  inset: 0;
}

.nm-heroBg {
  position: absolute;
  object-fit: cover;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.nm-heroContent {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin-top: 40px;
  padding: 0 20px;
}

.nm-heroCard {
  display: inline-block;
  background: #00000073;
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 20px 60px #00000059;
}

.nm-heroTitle {
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--nm-hero-fg);
  text-shadow: 0 12px 40px var(--nm-hero-shadow);
  margin: 0 0 22px;
  font-size: 64px;
  font-weight: 500;
}

.nm-heroDescription {
  color: var(--nm-hero-muted);
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.nm-heroStats {
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .95;
  color: #ffffffc7;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.nm-readMore {
  display: inline-flex;
  color: var(--nm-hero-fg);
  text-decoration: none;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  flex-direction: column;
  align-items:  center;
  margin-top: 44px;
  transition: opacity .25s;
  font-size: 16px;
  font-weight: 400;
}

.nm-readMore:hover {
  opacity: .75;
}

.nm-arrowDown {
  border-bottom: 2px solid var(--nm-hero-fg);
  border-right: 2px solid var(--nm-hero-fg);
  animation: nm-bounce 2s infinite;
  width: 24px;
  height: 24px;
  margin-top: 14px;
  transform: rotate(45deg);
}

@keyframes nm-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0)rotate(45deg);
  }

  40% {
    transform: translateY(-10px)rotate(45deg);
  }

  60% {
    transform: translateY(-5px)rotate(45deg);
  }
}

.nm-main {
  background: var(--nm-bg);
  padding: 110px 20px;
}

.nm-section {
  background: #fff;
  border: 2px solid #101010d9;
  border-radius: 8px;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 34px;
  transition: transform .16s;
}

.nm-section:hover {
  transform: scale(1.01);
}

.nm-sectionTitle {
  letter-spacing: .28em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.nm-sectionText {
  color: var(--nm-muted);
  max-width: 78ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

.nm-featureLink {
  display: inline-flex;
  color: var(--nm-fg);
  text-decoration: none;
  border: 1px solid #10101059;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  transition: opacity .16s, transform .16s;
}

.nm-featureLink:hover {
  opacity: .8;
  transform: translateY(-1px);
}

.nm-featureLogo {
  display: block;
  border-radius: 6px;
  width: 22px;
  height: 22px;
}

.nm-featureText {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 14px;
}

.nm-projectsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.nm-projectCard {
  border: 1px solid #1010101f;
  border-radius: 8px;
  padding: 18px;
}

.nm-projectTitle {
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.nm-email {
  color: var(--nm-fg);
  text-decoration: none;
  border-bottom: 1px solid #10101059;
}

.nm-email:hover {
  border-bottom-color: #101010b3;
}

@media (width <= 768px) {
  .nm-social {
    display: none;
  }

  .nm-nav {
    padding: 18px 20px;
  }

  .nm-header--scrolled .nm-nav {
    padding: 10px 20px;
  }

  .nm-navLinks {
    gap: 18px;
  }

  .nm-navLinks a, .nm-navContact {
    font-size: 14px;
  }

  .nm-heroTitle {
    letter-spacing: .22em;
    font-size: 34px;
  }

  .nm-heroDescription {
    font-size: 16px;
  }

  .nm-heroStats {
    font-size: 12px;
  }

  .nm-section {
    padding: 24px 18px;
  }

  .nm-projectsGrid {
    grid-template-columns: 1fr;
  }
}
