/* === BASE ANIMATION STATES === */
.animate-fade-in,
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale-in,
.animate-blur-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.animate-fade-in {
  transform: translateY(0);
}

.animate-slide-up {
  transform: translateY(40px);
}

.animate-slide-left {
  transform: translateX(40px);
}

.animate-slide-right {
  transform: translateX(-40px);
}

.animate-scale-in {
  transform: scale(0.9);
}

.animate-blur-in {
  filter: blur(10px);
  transform: translateY(20px);
}

/* === VISIBLE STATES === */
.animate-fade-in.is-visible,
.animate-slide-up.is-visible,
.animate-slide-left.is-visible,
.animate-slide-right.is-visible,
.animate-scale-in.is-visible,
.animate-blur-in.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
}

/* === STAGGERED ANIMATIONS === */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.animate-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
.animate-stagger.is-visible > *:nth-child(7) { transition-delay: 0.6s; }
.animate-stagger.is-visible > *:nth-child(8) { transition-delay: 0.7s; }
.animate-stagger.is-visible > *:nth-child(9) { transition-delay: 0.8s; }
.animate-stagger.is-visible > *:nth-child(10) { transition-delay: 0.9s; }
.animate-stagger.is-visible > *:nth-child(11) { transition-delay: 1.0s; }
.animate-stagger.is-visible > *:nth-child(12) { transition-delay: 1.1s; }

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(214, 189, 159, 0.3);
  }
  50% {
    box-shadow: 0 8px 40px rgba(214, 189, 159, 0.5);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}

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

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(214, 189, 159, 0.3);
  }
  50% {
    border-color: rgba(214, 189, 159, 0.8);
  }
}

/* === HOVER ANIMATIONS === */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(214, 189, 159, 0.4);
  transform: translateY(-4px);
}

.hover-3d {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.hover-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-5px);
  box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-shine {
  position: relative;
  overflow: hidden;
}

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

.hover-shine:hover::after {
  left: 100%;
}

/* === CONTINUOUS ANIMATIONS === */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-rotate {
  animation: rotate 10s linear infinite;
}

/* === PAGE LOAD ANIMATIONS === */
.page-enter {
  animation: fadeInUp 0.6s ease forwards;
}

.page-enter-delay-1 {
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.page-enter-delay-2 {
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.page-enter-delay-3 {
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.page-enter-delay-4 {
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

/* === CARD ANIMATIONS === */
.card-animated {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.card-animated:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .card-animated:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* === BUTTON ANIMATIONS === */
.btn-animated {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-animated:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-animated:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* === SECTION DECORATIONS === */
.section-decorated {
  position: relative;
}

.section-decorated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #2068A8 0%, #1B5A94 100%);
  border-radius: 2px;
}

[data-theme="dark"] .section-decorated::before {
  background: linear-gradient(135deg, #2068A8 0%, #143E6B 100%);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, #143E6B 0%, #2068A8 50%, #143E6B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
}

.gradient-text-animated {
  background: linear-gradient(135deg, #143E6B 0%, #2068A8 50%, #143E6B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

[data-theme="dark"] .gradient-text,
[data-theme="dark"] .gradient-text-animated {
  background: linear-gradient(135deg, #fff 0%, #2068A8 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
}

/* === QUOTE BLOCK === */
.quote-block {
  position: relative;
  padding: 50px 60px;
  margin: 60px auto;
  max-width: 800px;
  text-align: center;
  background: linear-gradient(145deg, #EFF5FC 0%, #f0ebe4 50%, #e8e0d5 100%);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(139, 115, 85, 0.12), 
              0 8px 25px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  animation: floatSlow 5s ease-in-out infinite;
}

.quote-block::before,
.quote-block::after {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10rem;
  line-height: 1;
  color: rgba(214, 189, 159, 0.15);
  pointer-events: none;
}

.quote-block::before {
  content: "\201C";
  top: -20px;
  left: 30px;
}

.quote-block::after {
  content: "\201D";
  bottom: -60px;
  right: 30px;
}

.quote-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #2068A8 0%, #1B5A94 100%);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(214, 189, 159, 0.35);
  animation: pulse 3s ease-in-out infinite;
}

.quote-block__icon ion-icon {
  font-size: 32px;
  color: #fff;
}

.quote-block__text {
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.quote-block__author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #143E6B;
  position: relative;
  z-index: 1;
}

.quote-block__author::before {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2068A8);
  border-radius: 1px;
}

.quote-block__author::after {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #2068A8, transparent);
  border-radius: 1px;
}

.quote-block__decoration {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 189, 159, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.quote-block__decoration--1 {
  top: -50px;
  right: -50px;
  animation: float 4s ease-in-out infinite;
}

.quote-block__decoration--2 {
  bottom: -50px;
  left: -50px;
  animation: float 4s ease-in-out infinite 1s;
}

[data-theme="dark"] .quote-block {
  background: linear-gradient(145deg, #2a2a4a 0%, #252542 50%, #1f1f3a 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
              0 8px 25px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quote-block::before,
[data-theme="dark"] .quote-block::after {
  color: rgba(214, 189, 159, 0.08);
}

[data-theme="dark"] .quote-block__icon {
  background: linear-gradient(135deg, #3d3a50 0%, #4d4a60 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .quote-block__text {
  color: #e0e0e0;
}

[data-theme="dark"] .quote-block__author {
  color: #2068A8;
}

[data-theme="dark"] .quote-block__decoration {
  background: radial-gradient(circle, rgba(214, 189, 159, 0.08) 0%, transparent 70%);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .quote-block {
    padding: 35px 25px;
    margin: 40px 15px;
  }
  
  .quote-block::before,
  .quote-block::after {
    font-size: 6rem;
  }
  
  .quote-block::before {
    top: -10px;
    left: 15px;
  }
  
  .quote-block::after {
    bottom: -40px;
    right: 15px;
  }
  
  .quote-block__icon {
    width: 55px;
    height: 55px;
    margin-bottom: 20px;
  }
  
  .quote-block__icon ion-icon {
    font-size: 26px;
  }
  
  .quote-block__text {
    font-size: 1.25rem;
    line-height: 1.7;
  }
  
  .quote-block__author {
    font-size: 1rem;
  }
  
  .quote-block__author::before,
  .quote-block__author::after {
    width: 25px;
  }
}

/* === WAVE DIVIDERS === */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-divider--top {
  transform: rotate(180deg);
}

/* === SKELETON LOADING === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2a2a4a 25%, #353550 50%, #2a2a4a 75%);
  background-size: 200% 100%;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-fade-in,
  .animate-slide-up,
  .animate-slide-left,
  .animate-slide-right,
  .animate-scale-in,
  .animate-blur-in,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
  }
  
  .animate-float,
  .animate-float-slow,
  .animate-pulse,
  .animate-pulse-glow,
  .animate-shimmer,
  .animate-bounce,
  .animate-rotate {
    animation: none;
  }
  
  .quote-block {
    animation: none;
  }
  
  .quote-block__icon {
    animation: none;
  }
}
