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

:root {
  --background: #2b2b2b;
  --background-2: #3b3b3b;
  --caption: #858584;
  --white: #ffffff;
  --purple: #a259ff;
  --black: black;
  --lvl1: 67px;
  --lvl2: 51px;
  --lvl3: 38px;
  --lvl4: 28px;
  --lvl5: 22px;
  --lvl6: 12px;
}
html,
body {
  background-color: #2b2b2b;
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* a:link,
a:visited {
  color: var(--black);
} */

nav a {
  text-decoration: none;
  color: inherit;
}
nav ul {
  list-style: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
}

.nav-items {
  display: flex;
  gap: 24px;
  font-family: "Work Sans";
  font-size: 16px;
  font-weight: 600;
}

.nav-items li {
  padding: 20px;
}

.nav-items .sign-up a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-items .sign-up {
  background-color: var(--purple);
  border-radius: 20px;
  width: 152px;
}

h1 {
  font-size: var(--lvl1);
}

.hero-left {
  display: flex;
  gap: 30px;
  flex-direction: column;
}

.hero-left p {
  font-size: var(--lvl5);
  font-family: "Work Sans";
}

.stats {
  display: flex;
  gap: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: "Space Mono";
  font-weight: 700;
  font-size: var(--lvl4);
}

.stat-label {
  font-family: "Work Sans";
  font-size: var(--lvl5);
}

.hero-section {
  display: flex;
  gap: 30px;
  padding: 80px 195px;
}

h3 {
  font-size: var(--lvl3);
  font-family: "Work Sans";
  font-weight: 600;
}

.trending-collection p {
  font-size: var(--lvl5);
  font-family: "Work Sans";
}

.trending-collection {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding: 80px 195px;
}

.btn-more {
  border-radius: 20px;
  background-color: var(--purple);
  padding: 32px 15px;
  border-style: none;
  font-size: var(--lvl5);
  font-family: "Space Mono";
  font-weight: 700;
  color: var(--white);
}

.btn-more:hover {
  cursor: pointer;
}

/* .animals-nft {
  display: flex;
  flex-direction: column;
  gap: 12px;
} */

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.nft-main-img:hover {
  animation: float 4s ease-in-out infinite;
}

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

.small-nfts:hover {
  animation: rotate 2s linear 2;
}

.below-img-btn {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
}

h5 {
  font-size: var(--lvl5);
  font-family: "Work Sans";
  font-weight: 600;
}

.title-artist {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.artist {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nft-card-wrapper {
  display: flex;
  gap: 30px;
}

.top-creator-wrapper,
.categories-wrapper {
  /* display: flex;
  gap: 60px; */
  padding: 80px 195px;
}

.title-with-p {
  display: flex;
  gap: 10px;
  flex-direction: column;
  flex: 1;
}

.regular-p {
  font-size: var(--lvl5);
  font-family: "Work sans";
}

.top-creators-header,
.discover-header {
  display: flex;
  align-items: center;
  /* gap: 100px; */
}

a.rocket-icon {
  display: flex;
  gap: 12px;
  align-items: center;

  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-family: "Work Sans";
  border-radius: 20px;
  border: 2px solid var(--purple);
  padding: 0 32px;
  width: 247px;
  height: 60px;
}

.creators-grid,
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.creator-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  padding: 20px;
  border-radius: 20px;
  background: #3b3b3b;
}

.rank {
  position: absolute;
  top: 12px;
  left: 12px;

  width: 30px;
  height: 30px;
  border-radius: 50%;

  background: #2b2b2b;
  color: #858584;

  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-card {
  background-color: var(--background-2);
  border-radius: 20px;
  overflow: hidden;
}

.browser-card h5 {
  padding: 20px 30px 25px;
  border-top: 1px solid var(--background-2);
  background: transparent;
}

.browser-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

a.eye-icon {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-family: "Work Sans";
  border-radius: 20px;
  border: 2px solid var(--purple);
  padding: 0 24px;
  width: 187px;
  height: 60px;
}

/* discover more nfts css */

.nft-card {
  background-color: var(--background-2);
  border-radius: 20px;
  overflow: hidden;
  font-family: "Work Sans", sans-serif;
}

.nft-card:hover {
  cursor: pointer;
}

.nft-image {
  width: 100%;
  height: auto;
  display: block;
}

/* CONTENT */
.nft-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nft-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

/* CREATOR */
.nft-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--white);
}

.nft-creator img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

/* META */
.nft-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.nft-meta .label {
  font-size: 12px;
  color: var(--caption);
}

.nft-meta .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

/* background mushroom  */

.background-container {
  background-image: url("images/big magic mushroom.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 640px;
  position: relative;
  margin-top: 60px;
  margin-bottom: 80px;
}

.background-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* linear gradient overlay */
  background: linear-gradient(
    180deg,
    rgba(162, 89, 255, 0) 0%,
    /* transparent at top */ rgba(162, 89, 255, 1) 100% /* purple at bottom */
  );

  z-index: 1; /* stays above the image */
}

.shroomie-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  width: 151px;
  height: 44px;
  padding: 10px 20px;

  border-radius: 20px;
  background-color: #3b3b3b;

  color: white;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: 500;
  font-size: 14px;
}

.left-column h2 {
  font-family: "Work Sans";
  font-weight: 600;
  font-size: 51px;
}

.see-btn {
  display: inline-flex;
  align-items: center;
  width: 198px;
  height: 60px;
  gap: 12px;
  font-family: "Work Sans";
  padding: 22px 50px;
  border-radius: 20px;
  background-color: var(--white);
  color: black;
  text-decoration: none;
}

.left-column {
  position: absolute;
  bottom: 40px; /* push higher from bottom */
  left: 40px; /* push in from left edge */
  right: 40px; /*  prevents overflow on smaller screens */

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 10px;
  color: white;
  z-index: 2;
}

/* auction timer styles */

.right {
  position: absolute; /*position relative to background */
  bottom: 40px; /* same spacing as left-column */
  right: 40px; /* distance from right edge */

  width: 295px;
  height: 144px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(59, 59, 59, 0.5); /* semi-transparent */
  backdrop-filter: blur(10px); /* frosted glass effect */

  display: flex;
  flex-direction: column;
  gap: 10px;

  color: white;
  font-family: sans-serif;
  z-index: 2;
}

/* Label text */
.right .label {
  font-size: 16px;
  font-weight: 500;
  font-family: "Space Mono";
}

/* Timer container */
.right .timer {
  display: flex;
  align-items: center;
  justify-content: space-between; /* spread time sections evenly */
  /* font-size: 20px;
  font-weight: bold; */
  gap: 5px;
}

/* Each time block (Hours/Minutes/Seconds) */
.right .timer > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right .timer > div > .times {
  font-size: 12px;
  font-weight: 400;
  font-family: "Space Mono";
}

/* Separator ":" */
.right .timer > span {
  font-size: 28px;
  font-weight: 700;
  font-family: "Space Mono";
  align-self: flex-start;
  margin-top: 6px;
}

.right .timer > div > strong {
  font-family: "Space Mono";
  font-weight: 700;
  font-size: 38px;
}

.set-up-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  padding: 10px 30px 30px 30px;
  width: 250px;
  height: 250px;
  background-color: var(--background-2);
  border-radius: 20px;
  width: 330px;
  height: 439px;
  justify-content: center;
  align-items: center;
}

.set-up-cards-wrapper {
  display: flex;
  gap: 30px;
  /* justify-content: center; */
  padding: 0 80px 195px;
  /* padding: 195px; */
  margin-left: 100px;
}

.title-p-wrapper {
  padding: 80px 195px 0;
  margin-bottom: 40px;
}

/* the form and button styles */

.container {
  width: min(1050px, 100% - 40px);
  margin: 0 auto;
}

.weekly-digest {
  padding: 40px 0 80px;
}

.digest-card {
  background: var(--background-2);
  border-radius: 20px;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.digest-image {
  flex: 0 0 380px;
  border-radius: 20px;
  overflow: hidden;
}

.digest-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.digest-content {
  flex: 1;
  max-width: 520px;
}

.digest-title {
  font-size: var(--lvl3); /* 38px */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.digest-text {
  color: var(--caption);
  line-height: 1.6;
  margin-bottom: 26px;
}

/* Subscribe pill (re-used in digest + footer) */
.subscribe-pill {
  display: flex;
  align-items: center;
  height: 60px;
  width: min(520px, 100%);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden; /* merges input + button into one pill */
}

.subscribe-pill input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 20px;
  font-size: 16px;
  font-family: "Work Sans", sans-serif;
}

.subscribe-pill button {
  height: 100%;
  border: 0;
  padding: 0 26px;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-family: "Work Sans", sans-serif;

  display: flex;
  align-items: center;
  gap: 10px;
}

.mail-icon {
  font-size: 16px;
  line-height: 1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--background-2);
  padding: 40px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.footer-title {
  font-size: var(--lvl5); /* 22px */
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-text {
  color: var(--caption);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--caption);
  background: rgba(255, 255, 255, 0.06);
}

.footer-socials a:hover {
  color: var(--white);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--caption);
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
}

.footer-links a:hover {
  color: var(--white);
}

/* Footer form width */
.footer-pill {
  width: min(420px, 100%);
}

/* Bottom */
.footer-bottom {
  margin-top: 30px;
}

.footer-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--caption);
  font-family: "Space Mono", monospace; /* nice touch for small footer copy */
  font-size: 12px;
}

/* media queries */

@media (max-width: 1024px) {
  /* reduce the huge side paddings everywhere */
  .hero-section,
  .trending-collection,
  .top-creator-wrapper,
  .categories-wrapper,
  .title-p-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .trending-collection,
  .top-creator-wrapper,
  .categories-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* NAV spacing */
  .header-content {
    padding: 20px 32px;
  }

  .nav-items li {
    padding: 14px;
  }

  /* Trending cards: my wrapper is flex -> allow wrapping */
  .nft-card-wrapper {
    flex-wrap: wrap;
  }
  .nft-card-wrapper > div {
    flex: 1 1 calc(50% - 15px); /* 2 per row */
  }

  /* grids: 4 columns -> 2 */
  .creators-grid,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Discover NFTs: 3 -> 2 */
  .nft-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* How it works: my wrapper is flex + has margin-left + weird padding */
  .set-up-cards-wrapper {
    margin-left: 0; /* IMPORTANT: remove fixed offset */
    padding: 0 40px 80px; /* make it normal */
    flex-wrap: wrap;
    justify-content: center;
  }

  .set-up-cards {
    width: 320px; /* keep card readable */
    height: auto; /* let content define height */
    padding: 30px;
  }

  /* Weekly digest card a bit smaller */
  .digest-card {
    padding: 40px;
    gap: 30px;
  }

  .digest-image {
    flex: 0 0 300px;
  }

  /* Footer: 3 columns -> 2 columns (last one full width) */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* universal side padding for  page sections */
  .hero-section,
  .trending-collection,
  .top-creator-wrapper,
  .categories-wrapper,
  .title-p-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* NAV: wrap + keep button from forcing overflow */
  .header-content {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }

  .nav-items {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .nav-items li {
    padding: 10px;
  }

  .nav-items .sign-up {
    width: auto; /* IMPORTANT: fixed 152px can cause awkward wrap */
    padding: 0 6px;
  }

  /* HERO: stack */
  .hero-section {
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: var(--lvl3); /* 38px on mobile */
    line-height: 1.2;
  }

  .stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Trending: 1 per row */
  .nft-card-wrapper {
    flex-direction: column;
  }

  /* grids: 2 columns or 1 depending on design */
  .creators-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr); /* common mobile pattern */
  }

  .nft-grid {
    grid-template-columns: 1fr;
  }

  /* Background mushroom: make overlay content stack and not overflow */
  .left-column,
  .right {
    position: static; /* remove absolute positioning on mobile */
    width: auto;
    height: auto;
  }

  .background-container {
    height: auto; /* let content grow */
    padding: 40px 20px; /* create space */
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .background-container::before {
    /* keep overlay */
  }

  /* How it works cards: stack */
  .set-up-cards-wrapper {
    margin-left: 0;
    padding: 0 20px 80px;
    flex-direction: column;
    align-items: stretch;
  }

  .set-up-cards {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    height: auto;
  }

  /* Weekly digest: stack image + content */
  .digest-card {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .digest-image {
    flex: 0 0 auto;
  }

  /* subscribe pill: stack input + button */
  .subscribe-pill {
    flex-direction: column;
    height: auto;
    background: transparent;
    overflow: visible;
    gap: 12px;
  }

  .subscribe-pill input,
  .subscribe-pill button {
    width: 100%;
    height: 56px;
    border-radius: 16px;
  }

  /* Footer: 1 column */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
