section {
  scroll-margin-top: var(--nav-height);
}
.container {
  width: min(1100px, 90%);
  margin: auto;
}

img {
  width: 100%;
  display: block;
  border-radius: 5px;
}

p.alt {
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  color: var(--text-secondary);
}

/* Super */

.super {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 30px 0 80px;
  align-items: center;
}

.super-image {
  width: 100%;
  max-width: 500px; /* Desktop limit */
  aspect-ratio: 1 / 1; /* Replaces fixed height */
  overflow: hidden;
  border-radius: 4px;
}

.super-artworks {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.super-content h1 {
  line-height: 1.2;
  font-size: 48px;
  margin: -20px 0 20px;
}

.super-content p {
  margin-bottom: 30px;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.slider-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  min-height: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cccccc00;
  border: 1px solid #2e2e2e;
  display: block;
  cursor: pointer;
}

.dot.active {
  background: #2e2e2e;
  transform: scale(1.2);
}

.super a {
  padding: 14px 34px;
  border: 1px solid #222;
  background: white;
  cursor: pointer;
  border-radius: 30px;
  transition: 0.3s;
  text-decoration: none;
  font-size: small;
  color: var(--text-primary);
}

.super a:active,
.super a:visited{
  color: inherit;
  text-decoration: none;
}

.super a:hover {
  background: #222;
  color: white;
  text-decoration: none;
}

/* Banner */

.banner img {
  height: 380px;
  object-fit: cover;
  margin: 40px 0;
}

.parallax {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -80px 0;
  will-change: transform;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
  padding: 70px 0;
  align-items: center;
}

.features h1 {
  line-height: 1.2;
  font-size: 48px;
  margin-bottom: 20px;
}

.features p {
  margin-bottom: 30px;
}

.features ul {
  font-size: 20px;
  list-style: none;
  color: var(--text-secondary);
}

.features li {
  margin: 15px 0;
}

.feature-content a {
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 18px;
  transition: 0.3s;
}

.feature-content a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: bold;
  font-size: 19px;
}

.feature-content a:visited {
  text-decoration: none;
}

.feature-image {
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  justify-content: center;
}

.feature-image img {
  width: 100%;
  max-width: 500px; /* Desktop limit */
  aspect-ratio: 1 / 1; /* Replaces fixed height */
  object-fit: cover;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

.feature-image img.fade {
  opacity: 0;
  transform: scale(1.05);
}

/* Gallery */

.gallery {
  padding: 80px 0;
  scroll-margin-top: 0px;
}

.gallery h1 {
  line-height: 1.2;
  font-size: 48px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid img {
  object-fit: cover;
}

.art-card {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  contain: layout paint;
  overflow: hidden;
  transition: 0.3s;
  width: 100%;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 450px;
  padding: 15px 15px;

  /* background: var(--card-bg);
  border: 1px solid #0000001f;
  border-radius: 5px; */

  cursor: pointer;
}

.art-card:hover {
  transform: translateY(-5px);
}

.art-card .img-wrapper {
  border-radius: 4px;
  overflow: hidden;
}

.img-wrapper img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.art-card:hover .img-wrapper img {
  transform: scale(1.25);
  cursor: pointer;
}

.art-content {
  padding: 5px 0;
}

.art-content h1,
h2,
h3 {
  margin: 0;
}

.art-title {
  margin: 0;
  text-align: left;
}

.art-card:hover .art-title {
  cursor: pointer;
  text-decoration: underline;
}

.art-subtitle {
  font-size: small;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-align: left;
}

.art-meta {
  display: flex;
  justify-content: space-between;
  font-size: small;
}

.art-meta span:first-child {
  text-align: left;
}

.art-meta span:last-child {
  text-align: right;
}

.art-price {
  font-weight: 700;
  margin-top: 10px;
}

.art-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}

.card-btn {
  padding: 6px 8px;
  border: 1px solid var(--card-btn-border);
  border-radius: 2px;
  text-align: left;
  text-decoration: none;
  color: var(--card-btn-border);
  background: var(--card-btn-bg);
  font-size: small;
  cursor: pointer;
  transition: 0.7s ease;
}

.card-btn:hover {
  background: var(--card-btn-border);
  color: var(--card-btn-bg);
}

.card-btn.alt {
  border: 1px solid var(--card-btn-border);
  color: var(--card-btn-bg);
  background: var(--card-btn-border);
}

.card-btn.alt:hover {
  background: #afff9f;
  color: #155309;
  border: 1px solid #155309;
}

/* About Section */

.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 35px;
  padding: 70px 0;
  align-items: center;
}

.about-artwork {
  height: 100%;
  padding-top: 10px;
}

.about-content {
  height: 100%;
}

.about h1 {
  line-height: 1.2;
  font-size: 48px;
  margin-bottom: 20px;
}

.about p {
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 17px;
}

.about-image {
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 500px; /* Desktop limit */
  aspect-ratio: 4 / 5; /* Replaces fixed height */
  object-fit: cover;
}

.quote {
  text-align: center;
}

.quote p.shine-text {
  padding: 0 10px;
  margin: 40px auto;
  font-size: 28px;
  font-style: italic;
  display: inline-block;
  color: var(--text-primary);

  /* Normal text color */
  background: linear-gradient(
    120deg,
    var(--text-primary) 0%,
    var(--text-primary) 45%,
    #ffffff 50%,
    var(--text-primary) 55%,
    var(--text-primary) 100%
  );

  background-size: 250% 100%;
  background-position: 150% 0;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shine-text.shine {
  animation: textShine 5s ease-in-out;
}

@keyframes textShine {
  from {
    background-position: 150% 0;
  }

  to {
    background-position: -150% 0;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .super {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .super .super-artworks {
    order: 2;
  }

  .super .super-content {
    order: 1;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about .about-artwork {
    order: 2;
  }

  .about .about-content{
    order: 1;
  }

  .super-content h2,
  .features h2,
  .about h2 {
    font-size: 40px;
  }
  .super-image {
    max-width: 100%;
    aspect-ratio: 1/1;
  }
  .feature-image img {
    max-width: 100%;
    /* aspect-ratio: 5/4; */
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-image img {
    max-width: 100%;
    aspect-ratio: 3/2;
  }
  .about p {
    font-size: 16px;
  }
  .quote p.shine-text {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .super-content h1,
  .features h1,
  .gallery h1,
  .about h1 {
    font-size: 38px;
  }
  .feature-content a {
    font-size: 16px;
  }
  .quote p.shine-text {
    font-size: 24px;
  }
}
