/* ===================================
   JP King Auction Company - Visual Enhancements
   Beautiful luxury design with gradients and animations
   =================================== */

/* Enhanced Header */
.header {
  background: linear-gradient(to bottom, var(--accent-white) 0%, #f9f9f9 100%);
  border-bottom: 3px solid var(--secondary-gold);
}

.logo::before {
  content: '👑';
  font-size: 1.5rem;
  margin-right: 0.25rem;
  display: inline-block;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  50% { opacity: 0.8; transform: scale(1.1); filter: brightness(1.2); }
}

/* Enhanced Navigation */
.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-gold), transparent);
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.phone-cta {
  background: linear-gradient(135deg, #c9a961 0%, #d4b474 50%, #c9a961 100%);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4); }
  50% { box-shadow: 0 6px 20px rgba(201, 169, 97, 0.6); }
}

.phone-cta:hover {
  background: linear-gradient(135deg, #1a2332 0%, #2a3a52 50%, #1a2332 100%);
  transform: translateY(-2px);
  animation: none;
}

/* Enhanced Hero Section */
.hero {
  background: 
    linear-gradient(135deg, rgba(26, 35, 50, 0.92) 0%, rgba(42, 58, 82, 0.88) 50%, rgba(26, 35, 50, 0.92) 100%),
    repeating-linear-gradient(45deg, #1a2332 0px, #1a2332 10px, #2a3a52 10px, #2a3a52 20px),
    radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
  background-size: cover, 40px 40px, 100% 100%, 100% 100%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 40%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary-gold) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-group {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Enhanced Buttons */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a961 0%, #d4b474 50%, #c9a961 100%);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201, 169, 97, 0.5);
}

.btn-dark {
  background: linear-gradient(135deg, #1a2332 0%, #2a3a52 50%, #1a2332 100%);
  box-shadow: 0 4px 12px rgba(26, 35, 50, 0.4);
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 35, 50, 0.5);
}

/* Enhanced Stats */
.stats {
  position: relative;
}

.stat-item {
  background: linear-gradient(135deg, var(--accent-white) 0%, #fafafa 100%);
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-gold), #d4b474, var(--secondary-gold));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  border-color: var(--secondary-gold);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 24px rgba(201, 169, 97, 0.2);
}

.stat-number {
  background: linear-gradient(135deg, #c9a961 0%, #d4b474 50%, #c9a961 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  animation: slideIn 0.6s ease-out both;
}

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

.stat-label {
  font-weight: 600;
}

/* Enhanced Section Light */
.section-light {
  background: 
    linear-gradient(135deg, #f8f6f3 0%, #fafafa 50%, #f8f6f3 100%),
    radial-gradient(circle at 20% 80%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 35, 50, 0.05) 0%, transparent 50%);
  position: relative;
}

.section-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary-gold) 50%, transparent 100%);
  opacity: 0.5;
}

/* Enhanced Section Dark */
.section-dark {
  background: 
    linear-gradient(135deg, #1a2332 0%, #2a3a52 25%, #1a2332 50%, #2a3a52 75%, #1a2332 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(201, 169, 97, 0.03) 10px, rgba(201, 169, 97, 0.03) 20px);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary-gold) 50%, transparent 100%);
}

/* Enhanced Cards */
.card {
  background: linear-gradient(135deg, var(--accent-white) 0%, #fafafa 100%);
  border: 1px solid rgba(201, 169, 97, 0.2);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-gold) 0%, #d4b474 50%, var(--secondary-gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--secondary-gold);
}

.card-icon {
  font-size: 3.5rem;
  display: inline-block;
  background: linear-gradient(135deg, #c9a961 0%, #d4b474 50%, #c9a961 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 4px rgba(201, 169, 97, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Enhanced Testimonials */
.testimonial {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.95) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  border-left: 4px solid var(--secondary-gold);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 5rem;
  color: var(--secondary-gold);
  opacity: 0.15;
  font-family: var(--font-heading);
  line-height: 1;
  font-weight: 700;
}

.testimonial::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  border-radius: 0 8px 0 100%;
}

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border-left-width: 6px;
}

/* Enhanced Footer */
.footer {
  background: 
    linear-gradient(135deg, #1a2332 0%, #0f1820 50%, #1a2332 100%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(201, 169, 97, 0.02) 20px, rgba(201, 169, 97, 0.02) 40px);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #c9a961 20%, #d4b474 50%, #c9a961 80%, transparent 100%);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(201, 169, 97, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(201, 169, 97, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.footer-section h3 {
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-gold) 0%, transparent 100%);
}

.footer-section a {
  position: relative;
  padding-left: 0;
  transition: all 0.3s ease;
}

.footer-section a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--secondary-gold);
}

.footer-section a:hover {
  padding-left: 15px;
  color: var(--secondary-gold);
}

.footer-section a:hover::before {
  left: 0;
  opacity: 1;
}

/* Enhanced Section Headers */
.section-subheading {
  position: relative;
  display: inline-block;
  padding: 0 var(--spacing-md);
}

.section-subheading::before,
.section-subheading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-gold), transparent);
  transform: translateY(-50%);
}

.section-subheading::before {
  right: 100%;
  margin-right: 10px;
}

.section-subheading::after {
  left: 100%;
  margin-left: 10px;
  background: linear-gradient(90deg, transparent, var(--secondary-gold));
}

/* Enhanced Feature List */
.feature-list li {
  transition: all 0.3s ease;
}

.feature-list li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.25) 100%);
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 97, 0.3);
  transition: all 0.3s ease;
}

.feature-list li:hover {
  padding-left: 3rem;
  color: var(--primary-navy);
}

.feature-list li:hover::before {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #d4b474 100%);
  border-color: var(--secondary-gold);
  transform: rotate(360deg) scale(1.1);
}

/* Content Section Enhanced */
.content-section {
  background: linear-gradient(135deg, var(--accent-white) 0%, #fafafa 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.content-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-left-width: 6px;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-gold) 0%, #d4b474 50%, transparent 100%);
}

/* SVG Icon Backgrounds */
.card-icon {
  position: relative;
  z-index: 1;
}

/* Contact Info Cards Enhanced */
.contact-info-card {
  background: linear-gradient(135deg, var(--accent-white) 0%, #fafafa 100%);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--secondary-gold), #d4b474, var(--secondary-gold));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.contact-info-card:hover::before {
  opacity: 1;
}

.contact-info-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(201, 169, 97, 0.2);
}

.contact-info-card-icon {
  background: linear-gradient(135deg, var(--secondary-gold) 0%, #d4b474 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 4px rgba(201, 169, 97, 0.3));
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Decorative Background Patterns */
.section {
  position: relative;
}

.section-light {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(201, 169, 97, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 35, 50, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(201, 169, 97, 0.02) 50px, rgba(201, 169, 97, 0.02) 51px);
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Shine Effect on Hover */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(25deg);
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 150%;
}

/* Gold Accent Lines */
.decorative-line {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--secondary-gold) 50%, transparent 100%);
  margin: var(--spacing-md) auto;
  position: relative;
}

.decorative-line::before,
.decorative-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--secondary-gold);
  border-radius: 50%;
}

.decorative-line::before {
  left: 0;
}

.decorative-line::after {
  right: 0;
}

/* Luxury Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="4" height="4" fill="rgba(0,0,0,0.01)"/></svg>');
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* Enhanced Contact Info Items */
.contact-info-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background-color: rgba(201, 169, 97, 0.1);
  padding-left: 1rem;
}

.contact-info-item i {
  font-size: 1.3rem;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Section Title Enhancement */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-gold), #d4b474, var(--secondary-gold));
  border-radius: 2px;
}

/* Table Styling (for Cookie Policy) */
table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

table thead tr {
  background: linear-gradient(135deg, #1a2332 0%, #2a3a52 100%);
}

table tbody tr:nth-child(even) {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fafafa 100%);
}

table tbody tr:hover {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
}

/* Glowing Effect */
.glow {
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 97, 0.4); }
  50% { box-shadow: 0 0 30px rgba(201, 169, 97, 0.6); }
}

/* Loading Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: fadeIn 0.5s ease-in;
}

/* Parallax Effect for Hero */
.hero {
  background-attachment: fixed;
}

@media (max-width: 767px) {
  .hero {
    background-attachment: scroll;
  }
}
/* ===================================
   TESTIMONIALS READABILITY IMPROVEMENTS
   Better contrast and visibility for client testimonials
   =================================== */

/* Override testimonial background for better readability */
.testimonial {
  background: #ffffff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure testimonial text is highly readable */
.testimonial-text {
  color: #1a2332 !important;
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* Make author name stand out */
.testimonial-author {
  color: #1a2332 !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  margin-top: 1.5rem !important;
}

/* Position text with better contrast */
.testimonial-position {
  color: #4a5568 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}

/* Enhanced section dark testimonials */
.section-dark .testimonial {
  background: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}

/* Ensure section headers in dark sections are visible */
.section-dark .section-subheading {
  color: var(--secondary-gold) !important;
}

.section-dark .section-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
