@font-face {
  font-family: 'Sombra';
  src: url('./fonts/Sombra-Thin.woff2') format('woff2'),
       url('./fonts/Sombra-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  font-family: 'Sombra', sans-serif;
  font-weight: 100;
  background-color: #01052A;
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (max-width: 767px) {
  html {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
  }
}

.container {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #01052A;
}

/* Background */
.background-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-overlay-dark {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.32);
  inset: 0;
}

/* Desktop Layout */
.desktop-layout {
  display: none;
}

@media (min-width: 768px) {
  .desktop-layout {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden;
  }
}

.logo-menu-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 30;
  padding: 0 40px;
  display: none;
  align-items: center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .logo-menu-overlay {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .logo-menu-overlay {
    padding: 0 80px;
  }
}

.logo-menu-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  pointer-events: auto;
}

.logo-title {
  font-size: 32px;
  color: white;
  line-height: normal;
  white-space: nowrap;
  font-weight: 100;
}

@media (min-width: 1024px) {
  .logo-title {
    font-size: 40px;
  }
}

/* Menu */
.menu {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  position: relative;
}

.menu-item.active {
  pointer-events: none;
}

.menu-link {
  display: block;
  text-decoration: none;
}

.menu-link-text {
  font-size: 16px;
  color: white;
  text-transform: lowercase;
  line-height: normal;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.menu-item.active .menu-link-text {
  opacity: 1;
}

.menu-item:not(.active):hover .menu-link-text {
  opacity: 1;
}

.menu-line-wrapper {
  position: relative;
  width: 100%;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-line {
  background-color: #d9d9d9;
  height: 1px;
  transform-origin: center;
  transition: all 0.3s ease-out;
  width: 20px;
  transform: scaleX(0);
}

.menu-item:not(.active):hover .menu-line {
  transform: scaleX(1);
}

.menu-line.active-line {
  width: 7px;
  transform: scaleX(1);
}

/* Scroll sync */
.scroll-sync-area {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: auto;
}

.scroll-sync-area::-webkit-scrollbar {
  display: none;
}

/* Projects */
.projects-container {
  flex: 1;
  height: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
}

.projects-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-end;
  position: relative;
  margin-left: auto;
  max-width: 753px;
  padding: 80px 40px 80px 40px;
}

@media (min-width: 1024px) {
  .projects-list {
    padding: 80px 80px 80px 80px;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.project-card[data-width="477"] {
  width: 477px;
}

.project-card[data-width="365"] {
  width: 365px;
}

.project-card[data-width="609"] {
  width: 609px;
}

.project-card[data-width="579"] {
  width: 579px;
}

.project-card[data-width="555"] {
  width: 555px;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: max(33vh, 500px);
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: max(33vh, 500px);
}

.project-info {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  width: 100%;
}

.project-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.project-title {
  font-size: 16px;
  font-weight: bold;
  color: white;
  line-height: 1.25;
  white-space: pre-wrap;
}

.project-author {
  font-size: 12px;
  color: white;
  line-height: normal;
  white-space: pre-wrap;
}

.project-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: white;
  line-height: 1.25;
  white-space: pre-wrap;
  text-align: right;
}

.project-format {
  font-size: 16px;
  line-height: 1.25;
}

.project-date {
  font-size: 12px;
}

/* Mobile Layout */
.mobile-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .mobile-layout {
    display: none;
  }
}

.mobile-projects {
  flex: 1;
}

.mobile-projects-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-end;
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: min(753px, 100vw);
  padding: 30px;
}

.project-card.mobile {
  max-width: calc(100vw - 60px);
}

.mobile-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: block;
}

@media (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}

.mobile-footer-gradient {
  pointer-events: none;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 220px;
  margin-top: -220px;
  z-index: 19;
  background: linear-gradient(to top, rgba(1,5,42,1) 0%, rgba(1,5,42,1) 22%, rgba(1,5,42,0.78) 48%, rgba(1,5,42,0.45) 75%, rgba(1,5,42,0) 100%);
}

@media (min-width: 768px) {
  .mobile-footer-gradient {
    display: none;
  }
}

.mobile-footer-content {
  position: relative;
  display: flex;
  height: 100px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  flex-shrink: 0;
  z-index: 1;
}

.mobile-footer-title {
  font-size: 32px;
  color: white;
  line-height: normal;
  white-space: nowrap;
  font-weight: 100;
}

/* About page */
.about-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    overflow: hidden;
  }
}

.about-content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 60px;
}

@media (min-width: 768px) {
  .about-content-inner {
    margin-left: 300px;
    padding: 0;
  }
}

.about-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: flex-start;
  line-height: 24px;
  max-width: 560px;
  color: white;
}

@media (min-width: 768px) {
  .about-content-wrapper {
    gap: 80px;
    padding: 80px 40px;
  }
}

@media (min-width: 1024px) {
  .about-content-wrapper {
    padding: 80px 80px;
  }
}

@media (min-width: 768px) {
  .about-content-inner {
    margin-left: 300px;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .about-content-inner {
    margin-left: 400px;
  }
}


.about-text {
  font-size: 20px;
  line-height: 24px;
  width: 100%;
  white-space: normal;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  color: white;
  font-weight: 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.about-contact {
  font-size: 16px;
  line-height: 20px;
  width: 100%;
  white-space: normal;
  font-style: normal;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  color: white;
  font-weight: 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-bold {
  font-weight: bold;
}

.contact-email {
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 2px;
}

.contact-email a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.contact-email a:hover {
  opacity: 0.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
