/* Custom Premium Styles & Micro-Animations for Anita Enterprise */

/* Fonts Import - Lora for elegant serif and Outfit & Plus Jakarta Sans for UI */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-navy: #FAF6EE;     /* Warm Cream Background */
  --color-royal: #BE7B30;    /* Golden Bronze Accent */
  --color-teal: #B87D3B;     /* Primary Golden Amber */
  --color-amber: #D97706;    /* Deep Gold Highlights */
  --color-slate: #6B5A4E;    /* Muted Warm Brown Subtext */
  --color-white: #352920;    /* Dark Charcoal/Brown Text */
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-navy);
  color: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
}

/* Background Animated Gradient Blobs */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.15); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
  animation: blob 12s infinite alternate ease-in-out;
}

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

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Glassmorphism Classes - Overhauled to Premium Light Cream & Gold Cards */
.glass-panel {
  background: #FFFFFF;
  border: 1px solid rgba(190, 123, 48, 0.15);
  box-shadow: 0 10px 30px -10px rgba(74, 60, 49, 0.08);
}

.glass-nav {
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(190, 123, 48, 0.1);
}

/* Preloader Animation */
#preloader {
  background: var(--color-navy);
  z-index: 9999;
  /* CSS-only fallback: auto-hide after 3.5s even if JS never fires */
  animation: preloader-auto-hide 0.5s ease 3.5s forwards;
}

@keyframes preloader-auto-hide {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.preloader-ring {
  animation: pulse-ring 2s infinite ease-in-out;
}

/* Hero Zoom Slide Animation */
.hero-image-zoom {
  animation: zoom-in-out 25s infinite alternate ease-in-out;
}

@keyframes zoom-in-out {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

/* Button Shine Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: none;
}

.btn-shine:hover::after {
  left: 130%;
  transition: all 0.7s ease-in-out;
}

/* Nav Link Underline */
.nav-link-underline {
  position: relative;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-teal);
  transition: width 0.3s ease-in-out;
}

.nav-link-underline:hover::after,
.nav-link-underline.active::after {
  width: 100%;
}

/* Scroll Reveal Base classes — progressive enhancement */
.reveal, .reveal-left, .reveal-right {
  opacity: 1;
  transform: none;
}

/* Prepared states (applied via JS only if JS & animations are active) */
.reveal-prepare.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-prepare.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-prepare.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Revealed states */
.reveal-prepare.active {
  opacity: 1 !important;
  transform: none !important;
}

/* Card Hover Lift & Zoom */
.card-hover-lift {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(14, 165, 164, 0.25);
}

.image-zoom-container {
  overflow: hidden;
}

.image-zoom-target {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover-lift:hover .image-zoom-target {
  transform: scale(1.08);
}

/* Continuous Brand Logo Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 25s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Accessible Skip To Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-amber);
  color: var(--color-navy);
  padding: 12px 24px;
  z-index: 10000;
  transition: top 0.2s ease;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* Custom Accessibility Focus outlines */
*:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--color-royal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-teal);
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  .animate-blob,
  .hero-image-zoom,
  .btn-shine::after,
  .reveal,
  .reveal-left,
  .reveal-right,
  .card-hover-lift,
  .image-zoom-target,
  .marquee-content {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
    display: none !important;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}
