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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.8;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
}

header {
  position: fixed;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  z-index: 1000;
}

.logo {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 1100;
}

.logo img {
  height: 65px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

nav {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1100;
  font-family: 'Courier New', Courier, monospace;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 1.1rem;
  font-weight: normal;
  transition: font-size 0.3s ease, text-decoration 0.3s ease;
}

nav a:hover {
  font-size: 1.3rem;
  text-decoration: underline;
  font-weight: bold;
}

.project-detail {
  padding: 15rem 2rem 10rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.project-detail > h1 {
  font-size: 6rem;
  margin-bottom: 4rem;
  font-weight: 700;
  color: #111;
  animation: floatShadow 3s ease-in-out infinite;
}

.project-detail > p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 15rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #000;
  animation: floatShadow 3s ease-in-out infinite;
}

.project-section {
  margin-bottom: 20rem;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-section h2 {
  margin-bottom: 2rem;
}

.gallery-snap {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  margin-bottom: 1rem;
}

.gallery-snap img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  scroll-snap-align: start;
  cursor: grab;
  transition: opacity 0.3s ease;
}

.gallery-snap:hover img {
  opacity: 0.9;
}

.gallery-snap img:hover {
  opacity: 1;
}

.swipe-hint {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-family: 'Courier New', Courier, monospace;
}

.image-text-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8rem 0 20rem;
  gap: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.image-text-block.left {
  flex-direction: row;
}

.image-text-block.right {
  flex-direction: row-reverse;
}

.image-text-block img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  cursor: default;
  transition: transform 0.3s ease;
}

.image-text-block img:hover {
  transform: scale(1.05);
}

.text-block {
  flex: 1;
  max-width: 450px;
  font-family: 'Courier New', Courier, monospace;
  color: #000;
  text-align: left;
}

.text-block h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.text-block p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.vinyl-section h2 {
  margin-top: 3rem;
}

.cover-block {
  display: flex;
  align-items: center;
  margin: 5rem 0;
  gap: 3rem;
  flex-wrap: wrap;
}

.cover-block.left-image,
.cover-block.right-image {
  justify-content: center;
}

.cover-block img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.cover-text {
  width: 100%;
  max-width: 400px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.vinyl-record {
  margin: 6rem auto 3rem;
  text-align: center;
}

.vinyl-record img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  animation: spin 15s linear infinite;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.figma-proto-container {
  margin: 10rem auto 0;
  text-align: center;
  max-width: 850px;
}

.figma-proto-container h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #111;
}

.figma-proto-container p {
  margin-bottom: 3rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  color: #000;
}

.figma-proto-container iframe {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 100%;
  max-width: 850px;
  height: 500px;
  margin: 3rem auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spinner-wrapper {
  margin: 10rem auto;
  text-align: center;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #000;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  margin: 0 auto 2rem;
}

.spinner-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  color: #555;
}

.monospace-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #000;
  display: inline-block;
}

.back-link {
  margin-top: 15rem;
  text-align: center;
}

.back-link a {
  font-family: monospace;
  font-weight: 600;
  font-size: 1.2rem;
  color: #e0ddce;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.back-link a:hover {
  color: #000;
  border-bottom-color: #000;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f7f5e9;
  color: #000;
  text-decoration: none;
  padding: 0.1rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

#scrollTopBtn:hover {
  background-color: #e0ddce;
}

@keyframes floatShadow {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: translateY(-6px);
    text-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .project-detail {
    padding: 12rem 1.5rem 8rem;
  }

  .project-detail > h1 {
    font-size: 4rem;
    margin-bottom: 3rem;
  }

  .image-text-block,
  .cover-block {
    flex-direction: column !important;
    margin: 8rem 0 10rem;
    text-align: center;
  }

  .text-block,
  .cover-text {
    max-width: 100%;
    text-align: center;
  }

  .figma-proto-container iframe {
    height: 320px;
  }

  .vinyl-record img {
    width: 180px;
    height: 180px;
  }

  .logo img {
    height: 50px;
  }

  nav {
    top: 15px;
    right: 15px;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 1rem;
  }

  nav a:hover {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .project-detail > h1 {
    font-size: 3rem;
  }

  .project-detail > p {
    font-size: 1rem;
    margin-bottom: 10rem;
  }

  .text-block h3 {
    font-size: 1.5rem;
  }

  .text-block p,
  .monospace-text {
    font-size: 1rem;
  }

  .logo img {
    height: 40px;
  }

  nav ul {
    gap: 0.7rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}


.cover-block img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cover-block img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.cover-block {
  display: flex;
  align-items: center;
  gap: 2rem;
}


