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

html, body {
  height: 100%;
  font-family: 'Alexandria', sans-serif;
  font-size: 16px;
}

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

img {
  display: block;
}

/* Main Container */
.app {
  background-color: #323647;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  align-items: flex-start;
  position: relative;
  width: 100%;
  min-height: 100%;
}

/* Header */
.header {
  background-color: #242734;
  height: 60px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 4;
}

.header-border {
  position: absolute;
  border-bottom: 1px solid white;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Mobile Header */
.header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  width: 100%;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  position: relative;
  flex-shrink: 0;
}

.logo-border {
  position: absolute;
  border-bottom: 5px solid #fac942;
  inset: 0;
  pointer-events: none;
}

.logo-icon {
  font-family: 'Font Awesome 6 Pro', sans-serif;
  line-height: 30px;
  font-size: 18px;
  color: white;
  width: 21px;
}

.menu-icon {
  font-family: 'Font Awesome 6 Pro', sans-serif;
  line-height: 30px;
  font-size: 18px;
  color: white;
}

/* Desktop Header */
.header-desktop {
  display: none;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-desktop-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  font-family: 'Alexandria', sans-serif;
  font-weight: 300;
  line-height: 30px;
  font-size: 16px;
  color: white;
  cursor: pointer;
}

/* Project Hero */
.project-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  width: 100%;
  z-index: 3;
}

.hero-section {
  background-color: #323647;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

/* Mobile Hero */
.hero-mobile {
  display: block;
}

.hero-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 30px 20px;
  position: relative;
  width: 100%;
}

.hero-image-container {
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-rows: max-content;
  align-items: start;
  justify-items: start;
  line-height: 0;
  position: relative;
  flex-shrink: 0;
}

.hero-image-bg {
  background-color: #1886bd;
  grid-column: 1;
  grid-row: 1;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  width: 319.91px;
  height: 319.91px;
}

.hero-image-wrapper {
  grid-column: 1;
  grid-row: 1;
  margin-left: 15.09px;
  margin-top: 15.09px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  width: 319.91px;
  height: 319.91px;
}

.hero-image-inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 8px;
}

.hero-image-white-bg {
  position: absolute;
  background-color: white;
  inset: 0;
  border-radius: 8px;
}

.hero-image {
  position: absolute;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  color: white;
  width: 100%;
}

.hero-title {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  line-height: 75px;
  font-size: 50px;
  white-space: pre-wrap;
  width: 100%;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  line-height: 25px;
  font-size: 16px;
  width: 100%;
}

.hero-detail-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  position: relative;
  border-radius: 8px;
  flex-shrink: 0;
  width: 100%;
}

.hero-detail-label {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
}

.hero-detail-value {
  font-family: 'Alexandria', sans-serif;
  font-weight: 300;
  white-space: pre-wrap;
  min-width: 100%;
}

/* Desktop Hero */
.hero-desktop {
  display: none;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-desktop-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 30px;
  padding-top: 45px;
  position: relative;
  width: 100%;
}

.hero-desktop-text {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  min-height: 1px;
  min-width: 1px;
  position: relative;
  color: white;
}

.hero-desktop-image-container {
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-rows: max-content;
  align-items: start;
  justify-items: start;
  line-height: 0;
  position: relative;
  flex-shrink: 0;
}

.hero-desktop-image-bg {
  background-color: #1886bd;
  grid-column: 1;
  grid-row: 1;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  width: 229.189px;
  height: 229.189px;
}

.hero-desktop-image-wrapper {
  grid-column: 1;
  grid-row: 1;
  margin-left: 10.81px;
  margin-top: 10.81px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  width: 229.189px;
  height: 229.189px;
}

/* Description Section */
.description-section {
  background-color: #242734;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.description-border {
  position: absolute;
  border-bottom: 1px solid #fac942;
  inset: 0 0 -1px 0;
  pointer-events: none;
}

.description-mobile {
  display: block;
}

.description-mobile-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 15px 40px;
  position: relative;
  width: 100%;
}

.description-text {
  font-family: 'Alexandria', sans-serif;
  font-weight: 300;
  line-height: 25px;
  font-size: 16px;
  color: white;
  white-space: pre-wrap;
  width: 100%;
}

.case-challenge {
  display: none;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 100px;
}

.description-desktop-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  position: relative;
  width: 100%;
}

.description-desktop-content p {
  max-width: 1000px;
  margin: 0 auto;
}

/* Works Section */
.works-section {
  background-color: #323647;
  position: relative;
  flex-shrink: 0;
  width: 100%;
  z-index: 2;
}

.works-mobile {
  display: block;
}

.works-mobile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding: 45px 20px 30px;
  position: relative;
  color: white;
  white-space: pre-wrap;
  width: 100%;
}

.works-title {
  font-family: 'Alexandria', sans-serif;
  font-weight: 400;
  line-height: 45px;
  font-size: 32px;
  width: 100%;
  margin-bottom: 60px;
  text-align: center;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.work-item-mobile {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.work-item-title {
  font-family: 'Alexandria', sans-serif;
  font-weight: 400;
  line-height: 35px;
  font-size: 22px;
  width: 100%;
}

.work-item-description {
  font-family: 'Alexandria', sans-serif;
  font-weight: 300;
  line-height: 25px;
  font-size: 16px;
  width: 100%;
}

/* Desktop Works */
.works-desktop {
  display: none;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.works-desktop-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 90px;
  padding-top: 90px;
  position: relative;
  width: 100%;
}

.works-desktop .works-list {
  gap: 60px;
}

.work-item-desktop {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.work-item-text {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  min-height: 1px;
  min-width: 1px;
  position: relative;
}

.work-item-text .work-item-title {
  color: white;
  white-space: pre-wrap;
}

.work-item-text .work-item-description {
  color: white;
  white-space: pre-wrap;
}

.work-item-image {
  position: relative;
  border-radius: 8px;
  flex-shrink: 0;
  width: 240px;
  height: 168px;
}

.work-item-image img {
  position: absolute;
  inset: 0;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.work-item-image.search-image {
  height: 164px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  align-items: flex-start;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.tag {
  background-color: #242734;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  position: relative;
  border-radius: 25px;
  flex-shrink: 0;
}

.tag-text {
  font-family: 'Alexandria', sans-serif;
  font-weight: 300;
  line-height: 25px;
  font-size: 16px;
  color: white;
  white-space: nowrap;
}

/* Footer */
.footer {
  background-color: #000;
  width: 100%;
  border-top: 1px solid #fff;
  position: relative;
  z-index: 1;
}

.footer .container {
  padding-top: 15px;
  padding-bottom: 15px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  color: #fff;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-link-icon {
  font-size: 24px;
  line-height: 30px;
  color: #fff;
}

.footer-link-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: #fff;
}

.footer-copyright {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: #fff;
  text-align: center;
}

@media (min-width: 800px) {
  .footer-links {
    gap: 60px;
  }
}

/* Tablet Breakpoint (800px+) */
@media (min-width: 800px) {
  .header-mobile {
    display: none;
  }

  .header-desktop {
    display: block;
  }

  .hero-mobile {
    display: none;
  }

  .hero-desktop {
    display: block;
  }

  .description-mobile {
    display: none;
  }

  .case-challenge {
    display: block;
  }

  .works-mobile {
    display: none;
  }

  .works-desktop {
    display: block;
  }
}

/* Tablet-Desktop Breakpoint (800-1023px) */
@media (min-width: 800px) and (max-width: 1023px) {
  .header-desktop {
    padding: 0 20px;
  }

  .hero-desktop {
    padding: 0 20px;
  }

  .case-challenge {
    padding: 30px 120px;
  }

  .works-desktop {
    padding: 0 20px;
  }
}

/* Desktop Breakpoint (1024px+) */
@media (min-width: 1024px) {
  .header-desktop {
    padding: 0 120px;
  }

  .hero-desktop {
    padding: 0 120px;
  }

  .hero-desktop-content {
    padding-top: 60px;
  }

  .hero-desktop-image-bg {
    width: 318px;
    height: 318px;
  }

  .hero-desktop-image-wrapper {
    margin-left: 15px;
    margin-top: 15px;
    width: 318px;
    height: 318px;
  }

  .case-challenge {
    padding: 30px 240px;
  }

  .works-desktop {
    padding: 0 120px;
  }

  .works-desktop-content {
    padding-top: 90px;
  }

  .work-item-image {
    width: 333px;
    height: 233px;
  }

  .work-item-image.search-image {
    height: 228px;
  }
}
