* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border:1px solid red; */
}

body {
  font-family: "Arial", sans-serif;
  background-color: #000;
  color: #fff;
}

/* Running Text Container */
.running-text-container {
  background-color: #000000;
  color: #fff;
  overflow: hidden;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  font-family: "Montserrat", sans-serif;
}

/* Running Text */
.running-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Navigation */
nav {
  background-color: #000000;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-block; /* biar perspective bekerja */
  perspective: 800px; /* jarak kamera -> ubah sesuai kebutuhan */
  -webkit-perspective: 800px;
}

.logo img {
  max-width: 50px;
  display: block;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden; /* menyembunyikan sisi belakang saat terbalik */
  -webkit-backface-visibility: hidden;
}

/* 1) Muter terus (infinite) secara horizontal */
.spin-continuous {
  animation: spinY 2.5s linear infinite;
}
@keyframes spinY {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* 2) Hanya saat hover (sekali muter) */
.spin-onhover {
  transition: transform 1s ease;
}
.logo:hover .spin-onhover {
  transform: rotateY(360deg);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: #c6c3c3;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* jarak garis ke teks */
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero h1 {
  font-size: 72px;
  font-style: italic;
  letter-spacing: 8px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  background: linear-gradient(45deg, #fff, #e0c3fc, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* max-height:300px; */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Collection Section */
.collection-section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.collection-title {
  font-family: "Italianno", cursive;
  text-align: center;
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 50px;
  letter-spacing: 2px;
  font-weight: 200;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.product-card {
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.sweater-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 500px;
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.03) 10px,
      rgba(0, 0, 0, 0.03) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.03) 10px,
      rgba(0, 0, 0, 0.03) 20px
    );
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* gambar penuh area */
  border-radius: 8px 8px 0 0;
}

.sweater-text {
  position: absolute;
  bottom: 40px;
  right: 25px;
  font-style: italic;
  color: #fff;
  font-size: 20px;
  letter-spacing: 2px;
  z-index: 10;
  font-family: "Times New Roman", serif;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-description {
  font-size: 15px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 15px;
}

.detail-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 8px 25px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.detail-btn:hover {
  background-color: #ddd;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image video {
  border-radius: 10px;
  overflow: hidden;
}

.tote-bag {
  width: 250px;
  height: 250px;
  background-color: #f5f5dc;
  position: relative;
  transform: rotate(-5deg);
  border-radius: 5px;
}

.tote-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: bold;
  color: #000;
  font-style: italic;
}

.about-content h2 {
  /* font-family: "Monsieur La Doulaise", cursive; */
  font-family: "Italianno", cursive;
  font-size: clamp(45px, 5vw, 64px);
  margin-bottom: 0px;
  letter-spacing: 2px;
  font-weight: 200;
}

.about-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #aaa;
  align-items: justify;
}
.slider-container {
  height: 60vh;
  width: 100vw;
  overflow: hidden;
  padding-top: 2.125rem;
}

.card-wrapper {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: slide-cards 20s linear infinite;
  max-height: 100px;
}

.card-wrapper:hover {
  animation-play-state: paused;
}

.card {
  position: relative;
  width: 15.625rem;
  height: 18.75rem;
  background: #f2f2f2;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 62.5rem;
  /* box-shadow: 0 0 0 0.3125rem #ffffff80; */
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: zoomIn 1s forwards;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.625rem;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.2);
}

.card__content {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  background: #f2f2f2;
  box-sizing: border-box;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.card__description {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: #777;
  line-height: 1.4;
  text-align: justify;
}

@keyframes slide-cards {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      -50%
    ); 
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
footer {
  background-color: #000000;
  padding: 20px 0;
  text-align: center;
  border-top: 0.2px solid rgb(106, 105, 105);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.social-icon {
  color: #939393;
  font-size: 25px;
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    max-height: 200px;
  }

  .hero-carousel {
    padding: 0;
    margin: 0;
  }

  .about-image img {
    max-width: 250px;
  }

  .about-image {
    height: 300px;
  }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom sama lebar */
  gap: 20px;
  margin:0;
}
.product-image {
  max-height:200px;
}
.slider-container {
  height: 60vh;
  width: 100vw;
  overflow: hidden;
  padding-top: 2.125rem;
}
.card-wrapper {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: slide-cards 20s linear infinite;
  max-height: 50px;
}
.card {
  position: relative;
  width: 13.625rem;
  height: 15.75rem;
  background: #f2f2f2;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 62.5rem;
  /* box-shadow: 0 0 0 0.3125rem #ffffff80; */
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: zoomIn 1s forwards;
}
}

