.hero-title { animation: heroGlow 3s ease-in-out infinite alternate; }
@keyframes heroGlow { from { text-shadow: 0 0 20px rgba(59, 130, 246, 0); } to { text-shadow: 0 0 40px rgba(59, 130, 246, 0.3); } }

.floating-card:nth-child(1) { --delay: 0; }
.floating-card:nth-child(2) { --delay: 1; }
.floating-card:nth-child(3) { --delay: 2; }
.floating-card:nth-child(4) { --delay: 3; }
.floating-card { animation: cardFloat 6s ease-in-out infinite; animation-delay: calc(var(--delay, 0) * 0.3s); }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.gradient-shift { background-size: 200% 200%; animation: gradientShift 8s ease infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.stat-card:nth-child(1) { --delay: 0; }
.stat-card:nth-child(2) { --delay: 1; }
.stat-card:nth-child(3) { --delay: 2; }
.stat-card:nth-child(4) { --delay: 3; }
.stat-card:nth-child(5) { --delay: 4; }

.service-card:nth-child(1) { --delay: 0; }
.service-card:nth-child(2) { --delay: 1; }
.service-card:nth-child(3) { --delay: 2; }
.service-card:nth-child(4) { --delay: 3; }
.service-card:nth-child(5) { --delay: 4; }
.service-card:nth-child(6) { --delay: 5; }

.value-card:nth-child(1) { --delay: 0; }
.value-card:nth-child(2) { --delay: 1; }
.value-card:nth-child(3) { --delay: 2; }
.value-card:nth-child(4) { --delay: 3; }
.value-card:nth-child(5) { --delay: 4; }
.value-card:nth-child(6) { --delay: 5; }

.portfolio-item:nth-child(1) { --delay: 0; }
.portfolio-item:nth-child(2) { --delay: 1; }
.portfolio-item:nth-child(3) { --delay: 2; }
.portfolio-item:nth-child(4) { --delay: 3; }
.portfolio-item:nth-child(5) { --delay: 4; }
.portfolio-item:nth-child(6) { --delay: 5; }

.hero-badge { animation: fadeInScale 0.8s 0.2s both; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.hero-title { animation: fadeInSlide 0.8s 0.4s both; }
@keyframes fadeInSlide { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.hero-subtitle { animation: fadeInSlide 0.8s 0.6s both; }
.hero-ctas { animation: fadeInSlide 0.8s 0.8s both; }
.scroll-indicator { animation: fadeIn 0.8s 1.2s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.stat-card { opacity: 0; transform: translateY(20px); }
.stat-card.visible { animation: fadeInUp 0.6s both; animation-delay: calc(var(--delay, 0) * 0.1s); }

.service-card.fade-in.visible { animation: fadeInUp 0.6s both; animation-delay: calc(var(--delay, 0) * 0.1s); }
.value-card.fade-in.visible { animation: fadeInUp 0.6s both; animation-delay: calc(var(--delay, 0) * 0.1s); }
.portfolio-item { opacity: 0; transform: translateY(30px); }
.portfolio-item.visible { animation: fadeInUp 0.6s both; animation-delay: calc(var(--delay, 0) * 0.1s); }

.tech-items span { animation: techPop 0.4s both; }
.tech-category:nth-child(1) .tech-items span { animation-delay: calc(0.1s * var(--i, 0)); }
@keyframes techPop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.contact-card:nth-child(1) { --delay: 0; }
.contact-card:nth-child(2) { --delay: 1; }
.contact-card:nth-child(3) { --delay: 2; }
.contact-card:nth-child(4) { --delay: 3; }
.contact-card.visible { animation: fadeInUp 0.6s both; animation-delay: calc(var(--delay, 0) * 0.1s); }

.faq-item { opacity: 0; transform: translateY(20px); }
.faq-item.visible { animation: fadeInUp 0.5s both; }
.faq-item:nth-child(1).visible { animation-delay: 0s; }
.faq-item:nth-child(2).visible { animation-delay: 0.1s; }
.faq-item:nth-child(3).visible { animation-delay: 0.2s; }
.faq-item:nth-child(4).visible { animation-delay: 0.3s; }
.faq-item:nth-child(5).visible { animation-delay: 0.4s; }
.faq-item:nth-child(6).visible { animation-delay: 0.5s; }

.btn-primary, .btn-secondary, .btn-ghost { position: relative; overflow: hidden; }
.btn-primary::after, .btn-secondary::after, .btn-ghost::after {
  content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%); transition: transform 0.3s;
}
.btn-primary:hover::after, .btn-secondary:hover::after, .btn-ghost:hover::after { transform: translateX(0); }

.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px; background: var(--primary-blue); transition: all 0.3s; transform: translateX(-50%); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.magnetic-btn { transition: transform 0.2s; }

.floating-card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s; }

.service-card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s; }

.portfolio-item { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s; }

#custom-cursor { transition: opacity 0.3s; }

.contact-card { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s; }

.footer-social a { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

.toast { animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes slideInRight { from { transform: translateX(120%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .floating-card, .service-card, .value-card, .portfolio-item { animation: none !important; opacity: 1 !important; transform: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .stat-card, .process-step, .timeline-item, .faq-item, .contact-card { opacity: 1 !important; transform: none !important; }
  #hero-canvas { display: none; }
  #custom-cursor { display: none; }
  body { cursor: auto; }
}