/* ====== Global Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #222;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #111;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  border-radius: 12px;
}

/* ====== Navbar ====== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #d4af37;
}

.navbar nav a {
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar nav a:hover {
  color: #d4af37;
}

/* ====== Buttons ====== */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.btn.primary {
  background: #d4af37;
  color: white;
}
.btn.primary:hover {
  background: #b89c2d;
  transform: scale(1.05);
}
.btn.secondary {
  border: 2px solid #d4af37;
  color: #d4af37;
}
.btn.secondary:hover {
  background: #d4af37;
  color: #fff;
  transform: scale(1.05);
}

/* Hero with background image */
.hero {
  height: 100vh;
  background: url('https://source.unsplash.com/1600x900/?interior,modern,home') center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}


/* ====== Intro Section ====== */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 8%;
  gap: 2rem;
}
.intro-text {
  flex: 1;
}
.intro-text h2 {
  margin-bottom: 1rem;
}
.intro-text p {
  margin-bottom: 1.5rem;
}
.intro-img {
  flex: 1;
}

/* ====== Categories ====== */
.categories {
  padding: 4rem 8%;
  text-align: center;
}
.category-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.category-cards .card {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-weight: 600;
  transition: transform 0.6s ease, box-shadow 0.4s ease;
}
.category-cards .card:hover {
  transform: rotateY(8deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* ====== Products ====== */
.products {
  padding: 4rem 8%;
  text-align: center;
}
.product-carousel {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.product-card {
  background: #fff;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.product-card:hover {
  transform: translateY(-10px);
}
.product-card img {
  border-radius: 12px;
  transition: transform 0.5s;
}
.product-card:hover img {
  transform: scale(1.1);
}

/* ====== Testimonials ====== */
.testimonials {
  padding: 4rem 8%;
  background: #fff;
  text-align: center;
}
.testimonial-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.testimonial {
  background: #fdfdfd;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 3s ease-in-out;
}
.testimonial:hover {
  transform: translateY(-10px);
}

/* ====== Newsletter ====== */
.newsletter {
  padding: 4rem 8%;
  text-align: center;
  background: linear-gradient(135deg, #fdfbfb, #ebedee, #fdfbfb);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
.newsletter input {
  padding: 0.7rem;
  width: 250px;
  border: none;
  border-radius: 20px;
  margin-right: 10px;
  outline: none;
}
.newsletter button {
  border: none;
  cursor: pointer;
}

/* ====== Footer ====== */
footer {
  background: #111;
  color: #eee;
  padding: 2rem 8%;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-links a {
  display: block;
  margin: 0.3rem 0;
  color: #eee;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #d4af37;
  text-shadow: 0 0 8px #d4af37;
}
.socials a {
  margin-right: 10px;
  font-size: 1.2rem;
  transition: 0.3s;
}
.socials a:hover {
  color: #d4af37;
}

/* ====== Animations ====== */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.animate.visible {
  opacity: 1;
  transform: none;
}

.fade-in { opacity: 0; }
.fade-in.visible { opacity: 1; transition: opacity 1.2s ease-in; }

.fade-up { transform: translateY(40px); }
.fade-up.visible { transform: translateY(0); }

.slide-left { transform: translateX(-60px); }
.slide-left.visible { transform: translateX(0); }

.slide-right { transform: translateX(60px); }
.slide-right.visible { transform: translateX(0); }

.slide-up { transform: translateY(80px); }
.slide-up.visible { transform: translateY(0); }

.zoom-in { transform: scale(0.8); opacity: 0; }
.zoom-in.visible { transform: scale(1); opacity: 1; transition: all 1s ease; }

.pop-in { transform: scale(0.7); opacity: 0; }
.pop-in.visible { transform: scale(1); opacity: 1; transition: all 0.6s ease-out; }

.text-reveal {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}
.text-reveal.visible {
  animation: typing 2.5s steps(30, end) forwards;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }
  .category-cards, .product-carousel, .testimonial-cards {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
