/* Custom CSS styles for Catherine Xu, CPA website */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

/* Modern gradient backgrounds */
.gradient-bg-primary {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.gradient-bg-secondary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Animations for elements */
.fade-in {
  will-change: opacity, transform;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom styling for service cards hover effects */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.03) 0%, rgba(194, 65, 12, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(194, 65, 12, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #c2410c;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Custom styling for CTA buttons with hover effects */
.cta-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.2);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.2);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Custom styling for form inputs with focus effects */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.2);
}

.input-focused label {
  color: #c2410c;
}

/* Custom testimonial card styles */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 3px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(194, 65, 12, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #c2410c;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(194, 65, 12, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
  font-weight: bold;
}

/* Professional image placeholder enhancements */
.professional-image-placeholder {
  background: linear-gradient(45deg, #0f172a, #334155);
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.focus:not-sr-only {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  clip: auto;
  white-space: normal;
}

/* Print styles for better printing */
@media print {
  header, footer, #contact {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
  }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .service-card, .testimonial-card {
    transform: none !important;
  }
  
  .cta-button:hover {
    transform: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #14b8a6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  body {
    color: #000;
    background: #fff;
  }
  
  .bg-primary {
    background-color: #000 !important;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .fade-in, .service-card, .testimonial-card, .cta-button {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Section underline headers */
section h2 {
  position: relative;
  padding-bottom: 1rem;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #c2410c 0%, #9a3412 100%);
  margin: 20px auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.3);
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #c2410c;
  outline-offset: 2px;
}

/* Better mobile navigation */
#mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: top;
}

#mobile-menu.hidden {
  display: block;
  opacity: 0;
  transform: scaleY(0);
  height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: scaleY(1);
}

/* Custom selection styles */
::selection {
  background-color: rgba(194, 65, 12, 0.3);
  color: #000;
}

/* Modern header styling */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

/* Professional photo styling */
.professional-photo-wrapper {
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.2));
}

.professional-photo-wrapper::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.1) 0%, rgba(154, 52, 18, 0.05) 100%);
  border-radius: 50%;
  z-index: -1;
}

/* CPA badge enhancement */
.cpa-badge {
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.3);
  border: 3px solid white;
}

/* Contact info card modern styling */
.contact-info-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

/* Form modern styling */
.modern-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  background-color: #ffffff;
}

.form-input:focus {
  border-color: #c2410c;
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
  background-color: #ffffff;
}

/* Icon styling */
.icon-wrapper {
  transition: transform 0.3s ease;
}

.service-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

/* Footer modern styling */
footer {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  section h2::after {
    width: 50px;
    height: 3px;
  }
} 