/* ====================================================
   SHILAM COUTURE — Cinematic Animation Layer
   Vibe: Editorial Luxury  |  Motion Intensity: 8
   ==================================================== */

/* ── Spring Easing Tokens ── */
:root {
  --spring:        cubic-bezier(0.32, 0.72, 0, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:    0.5s cubic-bezier(0.32, 0.72, 0, 1); /* global spring override */
}

/* ── Upgraded Scroll Reveal ── */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity   0.8s var(--spring),
    transform 0.8s var(--spring),
    filter    0.8s var(--spring);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Divider Line Draws In ── */
.divider-line {
  transform-origin: left center;
  transform: scaleX(0) !important;
  transition: transform 1s var(--spring) !important;
}
.fade-in.visible .divider-line {
  transform: scaleX(1) !important;
}

/* ── Staggered Feature Lists ── */
.service-features .service-feature,
.training-features .training-feature {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.6s var(--spring), transform 0.6s var(--spring);
}
.fade-in.visible .service-features .service-feature:nth-child(1),
.fade-in.visible .training-features .training-feature:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.14s; }
.fade-in.visible .service-features .service-feature:nth-child(2),
.fade-in.visible .training-features .training-feature:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.26s; }
.fade-in.visible .service-features .service-feature:nth-child(3),
.fade-in.visible .training-features .training-feature:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.38s; }

/* ── Kinetic Marquee Band ── */
@keyframes sc-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.sc-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(201,169,110,0.6);
  border-bottom: 1px solid rgba(201,169,110,0.6);
  padding: 0.72rem 0;
  background: #3a1a0a;
}
.sc-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: sc-marquee 30s linear infinite;
  animation-play-state: running;
}
.sc-marquee-wrap:hover .sc-marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .sc-marquee-track { animation: none; }
}
.sc-marquee-item {
  display: inline-block;
  padding: 0 1.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.87rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}
.sc-marquee-sep {
  color: var(--gold);
  opacity: 0.8;
  font-size: 0.6rem;
}

/* ── Scroll Progress Bar ── */
@keyframes sc-prog-shine {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.sc-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--brown-warm), var(--gold));
  background-size: 200% 100%;
  animation: sc-prog-shine 2.4s linear infinite;
  z-index: 9999;
  width: 0%;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── Perpetual Gold Ornament Breathe ── */
@keyframes sc-breathe {
  0%, 100% { opacity: 0.6;  transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.25); }
}
.divider-ornament > span {
  display: inline-block;
  animation: sc-breathe 2.8s ease-in-out infinite;
}

/* ── Feature Icon Float ── */
@keyframes sc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ── Hero Organic Blobs ── */
@keyframes sc-blob-drift {
  0%   { transform: translate(0px, 0px)     scale(1)    rotate(0deg); }
  33%  { transform: translate(26px, -16px)  scale(1.07) rotate(122deg); }
  66%  { transform: translate(-16px, 10px)  scale(0.94) rotate(244deg); }
  100% { transform: translate(0px, 0px)     scale(1)    rotate(360deg); }
}
.sc-hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(55px);
  opacity: 0;
  transition: opacity 1.4s var(--spring);
  z-index: 1;
  will-change: transform;
}
.sc-hero-blob.active  { opacity: 0.28; }
.sc-hero-blob-1 {
  width: 310px; height: 310px;
  background: radial-gradient(circle, rgba(201,169,110,0.65) 0%, transparent 68%);
  animation: sc-blob-drift 22s ease-in-out infinite;
  top: 6%; right: 3%;
}
.sc-hero-blob-2 {
  width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(139,69,19,0.45) 0%, transparent 68%);
  animation: sc-blob-drift 30s ease-in-out infinite reverse;
  bottom: 12%; right: 20%;
}

/* ── Button Spring Upgrade ── */
.btn-primary,
.btn-outline,
.btn-about,
.training-btn {
  position: relative;
  overflow: hidden;
  transition:
    background   0.5s var(--spring),
    color        0.5s var(--spring),
    transform    0.5s var(--spring-bounce),
    box-shadow   0.5s var(--spring),
    border-color 0.5s var(--spring) !important;
}

/* Ripple keyframe */
@keyframes sc-ripple {
  to { width: 380px; height: 380px; opacity: 0; }
}
.sc-ripple {
  position: absolute;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: sc-ripple 0.65s var(--spring) forwards;
}

/* ── Nav Link Spring Underline ── */
.nav-links a::after {
  transition: width 0.5s var(--spring-bounce) !important;
}

/* ── Spotlight Card ── */
.sc-spotlight {
  position: relative;
  overflow: hidden;
}
.sc-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--sc-cx, 50%) var(--sc-cy, 50%),
    rgba(201,169,110,0.14) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--spring);
  z-index: 2;
  border-radius: inherit;
}
.sc-spotlight:hover::after { opacity: 1; }

/* ── Product Card Hover ── */
.product-card {
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring) !important;
  will-change: transform;
}
.product-card .hover-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--spring), transform 0.4s var(--spring) !important;
}
.product-card:hover .hover-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ── Collection Card Overlay Rise ── */
.card-overlay {
  transform: translateY(8px);
  opacity: 0.78;
  transition: transform 0.5s var(--spring), opacity 0.4s var(--spring) !important;
}
.card-img-wrap:hover .card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* ── Image Scale Spring Override ── */
img {
  transition: transform 0.7s var(--spring) !important;
}
.card-img-wrap:hover img  { transform: scale(1.08) !important; }
.party-card:hover img     { transform: scale(1.1) !important; }

/* ── Feature Box Spring ── */
.feature-box {
  transition: transform 0.5s var(--spring-bounce) !important;
}
.feature-box:hover { transform: translateY(-7px) !important; }
.feature-box .feature-icon {
  transition:
    background 0.4s var(--spring),
    color      0.4s var(--spring),
    transform  0.5s var(--spring-bounce) !important;
}
.feature-box:hover .feature-icon {
  background: var(--gold) !important;
  color: #fff !important;
  transform: scale(1.14) !important;
}

/* ── Why-Choose Card Hover ── */
.why-choose-card {
  transition:
    transform    0.5s var(--spring),
    box-shadow   0.5s var(--spring),
    border-color 0.5s var(--spring) !important;
}
.why-choose-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 54px rgba(62,31,14,0.14) !important;
}

/* ── Testimonial Card ── */
.testimonial-card {
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring) !important;
}
.testimonial-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 18px 44px rgba(62,31,14,0.12) !important;
}

/* ── Social Button Spring ── */
.social-btn {
  transition:
    background   0.4s var(--spring-bounce),
    border-color 0.4s var(--spring),
    color        0.4s var(--spring),
    transform    0.4s var(--spring-bounce) !important;
}
.social-btn:hover { transform: translateY(-5px) scale(1.1) !important; }

/* ── Gold Accent Pulse ── */
@keyframes sc-gold-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.story-image-accent,
.service-accent {
  animation: sc-gold-pulse 3.5s ease-in-out infinite;
}

/* ── Footer Link Pill Spring ── */
.footer-link-pill {
  transition:
    background   0.4s var(--spring),
    color        0.4s var(--spring),
    transform    0.4s var(--spring-bounce),
    border-color 0.4s var(--spring) !important;
}
.footer-link-pill:hover { transform: translateY(-3px) scale(1.02) !important; }

/* ── About Stat Hover ── */
.about-stat {
  transition: transform 0.4s var(--spring) !important;
}
.about-stat:hover { transform: scale(1.04) !important; }
.about-stat strong { transition: color 0.3s var(--spring); }
.about-stat:hover strong { color: var(--gold); }

/* ── Hamburger Morph Spring ── */
.hamburger span {
  transition:
    transform 0.35s var(--spring),
    opacity   0.35s var(--spring) !important;
}

/* ── Dropdown Panel Spring ── */
.has-dropdown .dropdown-panel {
  transition:
    opacity    0.45s var(--spring),
    transform  0.45s var(--spring),
    visibility 0.45s var(--spring) !important;
}

/* ── Icon Button Spring ── */
.icon-btn {
  transition: color 0.4s var(--spring), transform 0.4s var(--spring-bounce) !important;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.1) !important; }

/* ── Floating Profile Button Spring ── */
.floating-profile-btn {
  transition:
    transform    0.5s var(--spring-bounce),
    background   0.4s var(--spring),
    box-shadow   0.4s var(--spring) !important;
}

/* ── Reduce Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* ── Mobile Guard ── */
@media (max-width: 768px) {
  .sc-hero-blob { display: none; }
}
