/* Custom animations and styles */
body {
  font-family: 'Aspekta', sans-serif;
}

.dark-bg {
  background-color: #010101;
}

.font-aspekta {
  font-family: 'Aspekta', sans-serif;
}

/* Default: mobile animation (logo shrinks to navbar top-left) */
@keyframes shrinkToNavMobile {
  0% {
    transform: scale(2);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 1;
  }
}

@keyframes bgChangeColor {
  0% {
    background-color: #010101;
  }
  80% {
    background-color: #fff;
  }
  100% {
    background-color: #fff;
  }
}

#intro-overlay {
  background-color: #010101; /* starting color */
}

#intro-overlay.animate {
  animation: bgChangeColor 2s ease forwards;
}

/* Default animation class */
#intro-logo.animate {
  animation: shrinkToNavMobile 1s ease forwards;
}

/* Hide intro overlay from lg screens onwards */
@media (min-width: 1024px) {
  #intro-overlay {
    display: none !important;
  }
}

/* Desktop: logo starts full screen, shrinks to navbar position */
@keyframes desktopLogoIntro {
  0% {
    transform: translate(-6.75rem, 0) scale(5); /* big, centered */
    opacity: 1;
  }
  100% {
    transform: translate(-6.75rem, -6.75rem) scale(1); /* normal size, final position */
    opacity: 1;
  }
}

/* Animate the desktop logo */
.app-logo.animate {
  animation: desktopLogoIntro 1.2s ease forwards;
  transform-origin: top center;
}

/* Override for large screens */
/* @media (min-width: 1024px) {
  #intro-logo.animate {
    animation: shrinkToNavDesktop 0.89s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
} */

/* Hidden state */
.navbar-hidden,
.hero-hidden {
  opacity: 0;
}

/* Fade-in */
.navbar-visible {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.hero-visible {
  opacity: 1;
  transition: opacity 1s ease 0.3s; /* delay so hero fades in after navbar */
}

.gold-gradient {
  background: linear-gradient(90deg, #b9975b 0%, #f4e4c1 50%, #b9975b 100%);
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b9975b;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(90deg, #b9975b 0%, #f4e4c1 50%, #b9975b 100%);
  transition: all 0.3s ease-in-out;
}

.btn-gold:hover .btn-primary:hover {
  background-position: right center;
  transform: scale(1.05);
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Primary Button */
.btn-primary {
  position: relative;
  overflow: hidden;
  border: 0.0625rem solid #b9975b;
  color: #b9975b;
  background: linear-gradient(to right, #b9975b 0%, #b9975b 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease, color 0.3s ease, border-color 0.3s ease;
  z-index: 0; /* ensure pseudo-elements layer correctly */
}

/* shiny border glow */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 0.0625rem solid transparent;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), #b9975b, rgba(255, 255, 255, 0.4));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: none;
  pointer-events: none;
  z-index: 2; /* glow above background */
}

/* glossy sweep across background */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1; /* shimmer between bg and border glow */
}

.btn-primary:hover {
  background-size: 100% 100%; /* gold fill left → right */
  color: #010101;
  border-color: transparent;
}

.btn-primary:hover::before {
  animation: shine-border 1.2s linear forwards;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

@keyframes shine-border {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* App Logo */
.app-logo {
  position: absolute;
  left: 51%;
  transform: translate(-50%, -50%);
  height: 170px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.app-logo-overlay {
  position: absolute;
  left: 51%;
  transform: translate(-50%, -50%);
  height: 170px;
  z-index: 100;
  transition: transform 0.3s ease;
}

.app-logo-hover:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-bg-container {
  background-image: url('./assets/images/HeroBG.svg');
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  width: 100%;
}

/* Override for large screens */
@media (min-width: 1920px) {
  .hero-bg-container {
    height: 70vh;
  }
}
@media (min-width: 2560px) {
  .hero-bg-container {
    height: 50vh;
  }
}

@keyframes slowMove {
  0% {
    background-position: center top;
  }
  50% {
    background-position: center bottom;
  }
  100% {
    background-position: center top;
  }
}

@keyframes shine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shiny-text {
  color: #fff; /* normal state = solid white text */
}

.shiny-text:hover {
  background: linear-gradient(90deg, #fff, #b9975b, #fff);
  background-size: 300% auto; /* stretch gradient for smooth flow */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 15s linear infinite;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-text {
  animation: fadeInUp 1s ease-in forwards;
}

.service-card {
  background: #f9fafb; /* light gray */
  color: #111; /* dark text */
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
}

.service-card p {
  color: #4b5563; /* gray-600 */
}

.icon-wrapper {
  margin-bottom: 2rem !important;
}

.service-card .icon-wrapper {
  width: 4rem;
  height: 4rem;
  /*margin: 0 auto 1.5rem auto;*/
  background: #b9975b; /* gold circle */
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .icon-wrapper i {
  color: white;
  transition: color 0.3s ease;
}

/* Hover = second card style */
.service-card:hover {
  background: #010101;
  color: #fff;
}

.service-card:hover p {
  color: #e5e7eb; /* gray-200 */
}

.service-card:hover .icon-wrapper i {
  color: #010101; /* black icon inside gold circle */
}

.text-gold {
  color: #b9975b;
}
.text-red {
  color: #c8102e;
}

.service-card-extended {
  background-color: white !important;
  border: 1px solid #b9975b;
}

.service-card-extended:hover {
  background-color: #b9975b !important;
  color: #010101;
}

.service-card-extended:hover i {
  color: #010101;
}
