/* ===== CUSTOM STYLES FOR DIRTY TOY GARAGE ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-playfair: 'Playfair Display', Georgia, serif;
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-plum-deep: #1a0a2e;
  --color-plum-mid: #4c1d95;
  --color-amber: #d4a017;
  --color-amber-light: #f0c040;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-inter);
  background-color: var(--color-plum-deep);
  color: #fff;
  overflow-x: hidden;
}

.font-playfair {
  font-family: var(--font-playfair);
}

.font-inter {
  font-family: var(--font-inter);
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  backdrop-filter: none;
}

#navbar.scrolled {
  background: rgba(26, 10, 46, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-up-delay {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-slide-up-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              background 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,160,23,0), rgba(212,160,23,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.4s ease;
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(212,160,23,0.3), rgba(212,160,23,0.05));
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(212, 160, 23, 0.08);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-plum-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #7e22ce, #d4a017);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #9333ea, #f0c040);
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #fff;
}

/* ===== FORM FOCUS STATES ===== */
input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ===== MOBILE MENU LINKS ===== */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4a017, #f0c040);
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

  .service-card {
    padding: 1.5rem !important;
  }

  .testimonial-card {
    padding: 1.5rem !important;
  }
}

/* ===== IMAGE HOVER ZOOM ===== */
img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== GALLERY IMAGE OVERLAY ===== */
.rounded-xl.overflow-hidden {
  position: relative;
}

.rounded-xl.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.2), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rounded-xl.overflow-hidden:hover::after {
  opacity: 1;
}

/* ===== GOLD LINE ACCENT ===== */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d4a017, #f0c040, #d4a017);
  border-radius: 2px;
}
