/* ============================================
   ANIMATIONS TENDANCE 2026 - SMM ALUMINIUM
   ============================================ */

/* ========== ANIMATIONS DE BASE ========== */
@keyframes fadeInUp {
  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 slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(198, 148, 74, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(198, 148, 74, 0.6);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes rotateGradient {
  0% {
    background: linear-gradient(45deg, #c6944a, #9a6f31);
  }
  50% {
    background: linear-gradient(135deg, #c6944a, #9a6f31);
  }
  100% {
    background: linear-gradient(45deg, #c6944a, #9a6f31);
  }
}

/* ========== CLASSES D'ANIMATION ========== */

/* Fade In animations */
.aos-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.aos-fade-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.aos-fade-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.aos-slide-down {
  animation: slideDown 0.8s ease-out forwards;
}

.aos-scale-in {
  animation: scaleIn 0.8s ease-out forwards;
}

/* ========== HEADER ANIMATIONS ========== */
.site-header {
  animation: slideDown 0.6s ease-out;
}

.site-logo {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.main-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ========== HERO SECTION ANIMATIONS ========== */
.hero-carousel {
  position: relative;
}

.carousel-slide {
  animation: fadeInUp 0.8s ease-out;
}

.carousel-slide img {
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-slide.active img {
  animation: float 3s ease-in-out infinite;
}

.hero-text h1 {
  animation: fadeInUp 1s ease-out 0.3s both;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #c6944a 0%, #9a6f31 50%, #c6944a 100%);
  background-size: 300% 300%;
  animation: fadeInUp 1s ease-out 0.3s both, gradientShift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.carousel-btn {
  transition: all 0.3s ease;
  transform: scale(1);
}

.carousel-btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(198, 148, 74, 0.4);
}

/* ========== ABOUT SECTION ANIMATIONS ========== */
.about-text-pro h2 {
  animation: fadeInLeft 1s ease-out forwards;
}

.about-text-pro p {
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-images-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  animation: scaleIn 0.8s ease-out forwards;
}

.img-box:nth-child(1) { animation-delay: 0s; }
.img-box:nth-child(2) { animation-delay: 0.2s; }
.img-box:nth-child(3) { animation-delay: 0.4s; }

.img-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(22, 38, 63, 0.2);
}

.img-box img {
  transition: transform 0.5s ease;
  will-change: transform;
}

.img-box:hover img {
  transform: scale(1.08);
}

/* ========== TRUST SECTION ANIMATIONS ========== */
.trust-card {
  animation: fadeInUp 0.8s ease-out forwards;
  transition: all 0.3s ease;
  border-radius: 20px;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(246, 237, 225, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 148, 74, 0.2);
}

.trust-card:nth-child(1) { animation-delay: 0s; }
.trust-card:nth-child(2) { animation-delay: 0.1s; }
.trust-card:nth-child(3) { animation-delay: 0.2s; }
.trust-card:nth-child(4) { animation-delay: 0.3s; }

.trust-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.95) 0%, rgba(246, 237, 225, 0.95) 100%);
}

.trust-card strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent);
  animation: float 3s ease-in-out infinite;
}

/* ========== PRODUCTS SECTION ANIMATIONS ========== */
.product-block {
  animation: scaleIn 0.8s ease-out forwards;
  transition: all 0.3s ease;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.9) 0%, rgba(246, 237, 225, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 148, 74, 0.15);
}

.product-block:nth-child(1) { animation-delay: 0s; }
.product-block:nth-child(2) { animation-delay: 0.2s; }
.product-block:nth-child(3) { animation-delay: 0.4s; }
.product-block:nth-child(4) { animation-delay: 0.6s; }

.product-block:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow);
}

.product-visual {
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #f5ede2 0%, #efe2d1 100%);
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-block:hover .product-visual img {
  transform: scale(1.15) rotate(2deg);
}

/* ========== EXPERTISE CARDS ANIMATIONS ========== */
.expertise-card {
  animation: fadeInUp 0.8s ease-out forwards;
  transition: all 0.3s ease;
  border-radius: 20px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.8) 0%, rgba(246, 237, 225, 0.8) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(198, 148, 74, 0.15);
  position: relative;
  overflow: hidden;
}

.expertise-card:nth-child(1) { animation-delay: 0s; }
.expertise-card:nth-child(2) { animation-delay: 0.2s; }
.expertise-card:nth-child(3) { animation-delay: 0.4s; }

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(198, 148, 74, 0.1), transparent);
  transition: left 0.6s ease;
}

.expertise-card:hover::before {
  left: 100%;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.95) 0%, rgba(246, 237, 225, 0.95) 100%);
}

.expertise-card h3 {
  color: var(--accent);
  transition: transform 0.3s ease;
}

.expertise-card:hover h3 {
  transform: translateX(10px);
}

/* ========== PROJECT CARDS ANIMATIONS ========== */
.project-card {
  animation: scaleIn 0.8s ease-out forwards;
  transition: all 0.3s ease;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.9) 0%, rgba(246, 237, 225, 0.9) 100%);
}

.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-20px);
  box-shadow: var(--shadow);
}

.project-card-media {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #f5ede2 0%, #efe2d1 100%);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.project-card:hover .project-card-media img {
  transform: scale(1.12) rotate(3deg);
}

.project-card-body span {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  transition: all 0.3s ease;
}

.project-card:hover span {
  opacity: 0.5;
  transform: scale(1.1);
}

/* ========== BUTTON ANIMATIONS ========== */
.pill-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 12px 32px;
}

.pill-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.pill-btn:hover::before {
  left: 100%;
}

.pill-btn.solid {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(198, 148, 74, 0.3);
  transform: translateY(0);
}

.pill-btn.solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(198, 148, 74, 0.5);
}

.pill-btn.solid:active {
  transform: translateY(-1px);
}

/* ========== FORM ANIMATIONS ========== */
input, textarea, select {
  transition: all 0.3s ease;
  border: 1px solid rgba(198, 148, 74, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(10px);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 0 0 3px rgba(198, 148, 74, 0.1);
  transform: translateY(-2px);
}

/* ========== PARALLAX EFFECT ========== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: -1;
}

/* ========== STAGGER ANIMATIONS ========== */
.stagger-item {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.2s; }
.stagger-item:nth-child(4) { animation-delay: 0.3s; }
.stagger-item:nth-child(5) { animation-delay: 0.4s; }
.stagger-item:nth-child(6) { animation-delay: 0.5s; }

/* ========== SMOOTH SCROLL EFFECT ========== */
html {
  scroll-behavior: smooth;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
