/* Animații pentru design modern */

/* Fade in animație */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Hover animație pentru butoane */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Animație gradient pentru titluri */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animație pentru carduri */
.card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animație pentru meniu mobil */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu {
  animation: slideDown 0.3s ease-out forwards;
}

/* Animație pentru loader */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader {
  border-top-color: #3b82f6;
  animation: spin 1s linear infinite;
}

/* Animații pentru site-ul de complex rezidențial */

/* Animație pentru elemente care apar la scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animație pentru hover pe carduri */
.card-hover {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Animație pentru butoane */
.hover-lift {
  transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

/* Efect de parallax pentru imagini */
.parallax {
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

/* Animație la apariția elementelor din stânga */
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animație la apariția elementelor din dreapta */
.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animație pentru statistici */
.count-up {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.count-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Animație de pulsație pentru indicator de derulare */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s infinite;
} 

@keyframes scroll {
	0% {
		transform: translateY(0);
	}
	30% {
		transform: translateY(60px);
	}
}

svg #wheel {
	animation: scroll ease 2s infinite;
}

.animate-gradient-slow {
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
}

.animate-pulse-slow {
  animation: pulse-animation 6s infinite;
}

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

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-fade-in {
  opacity: 0;
  animation: fade-in 0.8s forwards;
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.8s forwards;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-500 {
  animation-delay: 0.5s;
}

.animation-delay-700 {
  animation-delay: 0.7s;
}

.animation-delay-900 {
  animation-delay: 0.9s;
}

.animation-delay-1000 {
  animation-delay: 1s;
}

.animation-delay-1500 {
  animation-delay: 1.5s;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

@keyframes pulse-animation {
  0%, 100% {
      opacity: 0.3;
  }
  50% {
      opacity: 0.7;
  }
}

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

@keyframes fade-in {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

@keyframes fade-in-up {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

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

[data-component="hero"] {
  isolation: isolate;
}

@keyframes slide-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.animate-slide-down {
  animation: slide-down 1.8s ease-in-out infinite;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-fade-in {
  animation: fade-in 0.8s ease forwards;
}

@keyframes fade-in-up {
  0% { 
      opacity: 0;
      transform: translateY(20px);
  }
  100% { 
      opacity: 1;
      transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
}

@keyframes fade-in-left {
  0% { 
      opacity: 0;
      transform: translateX(20px);
  }
  100% { 
      opacity: 1;
      transform: translateX(0);
  }
}

.animate-fade-in-left {
  animation: fade-in-left 0.8s ease forwards;
}

@keyframes fade-in-right {
  0% { 
      opacity: 0;
      transform: translateX(-20px);
  }
  100% { 
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes pulse-slow {
  0%, 100% {
      opacity: 0.5;
  }
  50% {
      opacity: 0.2;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

.animation-delay-2000 {
  animation-delay: 2000ms;
}

@media (max-width: 640px) {
  [data-component="hero"] {
      min-height: 100vh; /* Asigură înălțimea completă pe dispozitive mobile */
  }
}

/* Stiluri suplimentare pentru header și meniu mobil */
#main-header {
  background-color: rgba(255, 255, 255, 0.02); /* bg-white/[0.02] echivalent */
}

#main-header.scrolled {
  background-color: rgba(15, 23, 42, 0.9); /* bg-slate-900/90 echivalent */
}

#mobile-menu {
  background-color: rgba(15, 23, 42, 0.95); /* bg-slate-900/95 echivalent */
  height: calc(100vh - 60px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#mobile-menu a {
  position: relative;
  overflow: hidden;
}

#mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(183, 156, 80, 0.1); /* #b79c50/10 echivalent */
  transition: height 0.3s ease;
  z-index: -1;
}

#mobile-menu a:active::after {
  height: 100%;
}

/* Adăugăm stilizare pentru butonul de meniu */
#mobile-menu-button {
  color: #b79c50; /* Asigurăm culoarea galbuie pentru buton */
}

#mobile-menu-button svg {
  transition: transform 0.3s ease;
  stroke: currentColor; /* Asigurăm că iconița primește aceeași culoare ca și textul butonului */
}

#mobile-menu-button:hover svg {
  transform: scale(1.1);
}

/* Adăugăm animație pentru tranziția iconițelor */
@keyframes scaleIn {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.scale-in {
  animation: scaleIn 0.3s ease forwards;
}

/* Animații pentru barele de progres */
@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: var(--progress-width);
  }
}

.animate-progress-fill {
  animation: progressFill 1.5s ease-out forwards;
}

/* Animație pentru punctele de status */
@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

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

/* Animație pentru timeline items */
@keyframes timelineSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-item {
  animation: timelineSlideIn 0.6s ease-out forwards;
}

/* Animație pentru fade-in-up cu delay */
@keyframes fadeInUpDelayed {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up-delayed {
  animation: fadeInUpDelayed 0.8s ease-out forwards;
}

/* GitHub-inspired loading animations */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes progress {
  0% {
    width: 0%;
  }
  50% {
    width: 60%;
  }
  100% {
    width: 80%;
  }
}

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

.animate-progress {
  animation: progress 3s ease-in-out infinite;
}