@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Poppins:wght@300;400;500&display=swap');

/* ================= GLOBAL ================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

/* Section padding */
section {
  padding: 5rem 1.5rem;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }
}

/* ================= UTILITIES ================= */

.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #d4a017;
}

/* ================= ANIMATIONS ================= */

/* Fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Star bounce */
@keyframes starBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.star-bounce {
  animation: starBounce 1.2s ease-in-out infinite;
}

.star-delay-1 { animation-delay: 0s; }
.star-delay-2 { animation-delay: 0.15s; }
.star-delay-3 { animation-delay: 0.3s; }
.star-delay-4 { animation-delay: 0.45s; }
.star-delay-5 { animation-delay: 0.6s; }

/* Floating icons */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.service-icon {
  animation: floatIcon 4s ease-in-out infinite;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.float-1 { animation-delay: 0s; }
.float-2 { animation-delay: 0.6s; }
.float-3 { animation-delay: 1.2s; }
.float-4 { animation-delay: 1.8s; }
.float-5 { animation-delay: 2.4s; }
.float-6 { animation-delay: 3s; }

/* Hover enhancement */
.service-card:hover .service-icon {
  transform: translateY(-10px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(200,162,77,0.7));
}

/* ================= FORMS ================= */

input, textarea {
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #d4a017;
  box-shadow: 0 0 0 1px #d4a017;
}

/* ================= TESTIMONIAL SLIDER ================= */

#testimonialTrack {
  display: flex;
  gap: 1.5rem; /* matches gap-6 */
  transition: transform 0.7s ease-in-out;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  background: #0f172a;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .author {
  font-weight: 500;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 3rem) / 3); /* 3 cards + gaps */
  }
}

/* ================= BLOG SLIDER ================= */

#blogSliderTrack {
  display: flex;
  gap: 2rem; /* gap-8 */
  will-change: transform;
}

.blog-card {
  flex: 0 0 100%;
  background: #0f172a;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

@media (min-width: 768px) {
  .blog-card {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}

@media (max-width: 767px) {
  #blogPrev,
  #blogNext {
    display: none !important;
  }
}
