/* Premium effects and animations */

/* Base animation classes */
.fade-in, .fade-up, .fade-right, .fade-left {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

.fade-in.animated {
  opacity: 1;
}

.fade-up {
  transform: translateY(30px);
}

.fade-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.fade-right {
  transform: translateX(-30px);
}

.fade-right.animated {
  opacity: 1;
  transform: translateX(0);
}

.fade-left {
  transform: translateX(30px);
}

.fade-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Button hover effects */
.btn, .nav-cta {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after, .nav-cta::after {
  content: "";
  position: absolute;
  top: var(--cursor-y, 50%);
  left: var(--cursor-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s;
  z-index: -1;
  pointer-events: none;
}

.btn:hover::after, .nav-cta:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Header scroll effects */
.header {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header.header-hidden {
  transform: translateY(-100%);
}

/* Service items hover effect */
.service-list li {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-list li.active {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.service-list li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-list li:hover::after,
.service-list li.active::after {
  transform: scaleX(1);
}

/* Process step animations */
.process-step {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-step:hover .step-number {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

.step-number {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Footer animation */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0, var(--accent), transparent 60%);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 0;
  pointer-events: none;
}

.footer.visible::after {
  opacity: 0.03;
  transform: translateY(0);
}

.contact-info::before {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-info:hover::before {
  transform: translateX(-50%) scale(1.2) rotate(10deg);
}

/* Premium text effects */
h1, h2 {
  background-clip: text;
  -webkit-background-clip: text;
  position: relative;
}

h1 {
  letter-spacing: -0.03em;
}

.hero h1 {
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Stats section styling */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 3rem 0;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}

/* Premium image mask effects */
.image-mask {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-mask img {
  width: 100%;
  height: auto;
  transform: scale(1.05);
  transition: transform 1.5s ease;
}

.image-mask:hover img {
  transform: scale(1);
}

.image-mask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(31, 41, 55, 0.8), transparent 70%);
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.image-mask:hover::before {
  opacity: 0.6;
}

/* Elegant dividers */
.elegant-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 2rem 0;
  opacity: 0.5;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  z-index: 100;
}

.scroll-indicator::before {
  content: "";
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}