:root {
  --amber-600: #d97706;
  --amber-700: #b45309;
  --gray-900: #111827;
  --gray-200: #e5e7eb;
  --white: #ffffff;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
}

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

/* Hero Section Animations */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-enter {
  animation: heroEnter 0.8s ease-out;
}

/* Service Card Hover */
@keyframes cardGlow {
  from {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 0 20px 50px rgba(217, 119, 6, 0.2);
  }
}

.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: var(--amber-600);
}

/* Testimonial Card Animation */
.testimonial-card {
  transition: all 0.3s ease-out;
}

.testimonial-card:hover {
  border-color: var(--amber-600);
  transform: translateY(-4px);
}

/* Gallery Hover Effect */
.gallery-item {
  transition: all 0.3s ease-out;
}

.gallery-item img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Logo link */
.logo-link {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

/* Marquee/scroll effect fallback with subtle animation */
@keyframes subtle-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}

.bg-pattern {
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
}

/* Mobile menu smooth transition */
#mobile-menu-panel {
  max-height: 500px;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

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

/* Sticky nav smooth shadow on scroll */
nav {
  transition: box-shadow 0.2s ease-out;
}

nav.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 2px;
}

/* Form input styling */
input, select, textarea {
  font-family: 'DM Sans', sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* Button hover states */
button {
  transition: all 0.2s ease-out;
}

button:active {
  transform: scale(0.98);
}

/* Link underline animation */
a {
  transition: color 0.2s ease-out;
}

a:hover {
  color: var(--amber-600);
}

/* Ensure images load gracefully */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
}

/* Prevent layout shift on scroll */
html {
  overflow-y: scroll;
}

/* Smooth animations across sections */
section {
  transition: all 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--amber-600);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber-700);
}

/* Firefox scrollbar */
* {
  scrollbar-color: var(--amber-600) #f1f5f9;
  scrollbar-width: thin;
}
