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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.5);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* HERO ANIMATIONS */
#home h1 {
  animation: slideInLeft 0.8s ease-out;
}

#home p {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

#home > div > div:last-child {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

#home > div > div:last-child > div:last-child {
  animation: slideInRight 0.8s ease-out 0.3s both;
}

/* SECTION REVEALS */
section h2 {
  animation: fadeInUp 0.6s ease-out both;
}

section h3 {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.group:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.group:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.group:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.group:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.group:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.group:nth-child(6) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* HOVER EFFECTS */
a[class*="px-8 py-4 bg-amber"] {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a[class*="px-8 py-4 bg-amber"]:hover {
  transform: translateY(-2px);
}

button:hover {
  opacity: 0.9;
}

/* GRID ITEM CARDS */
.group {
  transition: transform 0.3s ease;
}

.group:hover {
  transform: translateY(-4px);
}

/* TEXT GRADIENT FOR ACCENT */
.text-amber-600 {
  transition: color 0.3s ease;
}

/* MOBILE MENU ANIMATION */
#mobile-menu-panel {
  animation: slideInLeft 0.3s ease-out;
}

#mobile-menu-panel.hidden {
  animation: none;
}

/* SMOOTH LINKS */
a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* TESTIMONIAL CARDS STAGGER */
section#testimonials .bg-white:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

section#testimonials .bg-white:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

section#testimonials .bg-white:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

section#testimonials .bg-white:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

section#testimonials .bg-white:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

section#testimonials .bg-white:nth-child(6) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* NAV STICKY */
nav {
  animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUTTON SCALE ON HOVER */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* BORDER UNDERLINE ANIMATION */
a {
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Remove underline from nav links */
nav a::after {
  display: none;
}

/* FORM-LIKE ELEMENTS */
input, textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

/* RESPONSIVE TWEAKS */
@media (max-width: 1024px) {
  nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* ACCENT COLOR ANIMATIONS */
.text-amber-600 {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ENSURE ALL CONTENT IS VISIBLE */
body, html {
  width: 100%;
  min-height: 100vh;
}

section {
  width: 100%;
}

/* PREVENT LAYOUT SHIFT */
* {
  position: relative;
}
