/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Page Shell ===== */
.page {
  width: 1440px;
  height: max(1100px, 100vh);
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* ===== Background Pattern ===== */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  background-image: url('assets/pattern.svg');
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

body::before {
  left: 0;
  width: calc(50% - 295px);
}

body::after {
  right: 0;
  width: calc(50% - 295px);
}

.nav,
.hero,
.portfolio,
.footer {
  position: relative;
  z-index: 1;
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 445px;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-cta {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background: #000;
  padding: 6px 10px;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ===== Hero ===== */
.hero {
  padding: 55px 445px 0;
  flex-shrink: 0;
}

.hero-heading {
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 24px;
  width: 462px;
}

.hero-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  width: 462px;
}

/* ===== Portfolio ===== */
.portfolio {
  flex: 1;
  min-height: 0;
  padding-top: 60px;
  overflow: visible;
  width: 100vw;
  margin-left: calc(-50vw + 720px);
}

.portfolio-track {
  display: flex;
  gap: 18px;
  padding: 4px 18px 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.portfolio-item--large .portfolio-image {
  height: max(540px, calc(100vh - 610px));
  width: max(720px, calc((100vh - 610px) * 1.3333));
}

.portfolio-item--small .portfolio-image {
  height: max(540px, calc(100vh - 610px));
  width: max(250px, calc((100vh - 610px) * 0.463));
}

.portfolio-image {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #F0F0F0;
  box-shadow: 0 0.5px 2px 0 rgba(0, 0, 0, 0.20);
  object-fit: cover;
}


.portfolio-name {
  font-size: 14px;
  font-weight: 400;
  color: #ABABAB;
  margin-top: 10px;
  padding-left: 0;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 445px 30px;
  flex-shrink: 0;
}

.footer-signature {
  display: flex;
  flex-direction: column;
}

.footer-signature img {
  margin-bottom: -8px;
}

.footer-signature-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
}

.footer-components {
  display: flex;
  align-items: flex-end;
  overflow: visible;
}

.footer-components object {
  overflow: visible;
  width: 200px;
  height: 150px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  body::before,
  body::after {
    display: none;
  }

  .page {
    width: 100%;
    height: 100dvh;
    left: 0;
    transform: none;
  }

  .nav {
    padding: 12px 12px;
  }

  .hero {
    padding: 20px 12px 0;
  }

  .hero-heading {
    width: 100%;
    font-size: 22px;
  }

  .hero-description {
    width: 100%;
  }

  .portfolio {
    width: 100%;
    margin-left: 0;
    padding-top: 12px;
    flex: 0 0 auto;
  }

  .portfolio-track {
    padding: 4px 12px 0 12px;
  }

  .portfolio-item--large .portfolio-image {
    width: calc(100vw - 24px);
    height: calc((100vw - 24px) * 0.75);
  }

  .portfolio-item--small .portfolio-image {
    width: calc((100vw - 24px) * 250 / 720);
    height: calc((100vw - 24px) * 0.75);
  }

  .footer {
    padding: 4px 12px 2px;
    margin-top: auto;
  }

  .footer-components object {
    width: 160px;
    height: 120px;
  }
}
