/* Custom cinematic / luxury touches that go beyond plain Tailwind utility classes */

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: #C9A24B;
  border-radius: 4px;
}

/* Reusable dark luxury radial gradient background (login page, etc.) */
.luxury-bg {
  background:
    radial-gradient(ellipse at top left, rgba(201, 162, 75, 0.10), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(201, 162, 75, 0.06), transparent 60%),
    linear-gradient(180deg, #0D0D0D 0%, #141414 100%);
}

/* Simple CSS fade-in-up for above-the-fold content (login, dashboard) */
.fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== Hero cinematic slider ===================== */
#hero-swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}
#hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.05);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 162, 75, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.35) 40%, rgba(13,13,13,0.92) 100%),
    linear-gradient(90deg, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.25) 55%, rgba(13,13,13,0.7) 100%);
}

/* Film grain texture overlay */
.film-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Thin gold progress line for hero swiper autoplay */
.hero-swiper-progress {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #C9A24B, #E8CC85);
  z-index: 5;
  transition: width linear;
}

/* Hero slide counter */
.hero-counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
}

/* ===================== Portfolio 3D coverflow ===================== */
#portfolio-swiper {
  padding: 3rem 0 4rem;
  overflow: visible !important;
}
#portfolio-swiper .swiper-slide {
  width: 300px;
  height: 380px;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.6);
  border: 1px solid rgba(201, 162, 75, 0.15);
}
@media (min-width: 768px) {
  #portfolio-swiper .swiper-slide {
    width: 340px;
    height: 430px;
  }
}
#portfolio-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease, transform 0.6s ease;
  filter: brightness(0.55) saturate(0.9);
}
#portfolio-swiper .swiper-slide-active img {
  filter: brightness(1) saturate(1.05);
  transform: scale(1.03);
}
#portfolio-swiper .swiper-slide .portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,13,0.9) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#portfolio-swiper .swiper-slide-active .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}
#portfolio-swiper .swiper-pagination-bullet {
  background: #6b6b6b;
  opacity: 1;
}
#portfolio-swiper .swiper-pagination-bullet-active {
  background: #C9A24B;
}
.swiper-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e5e5;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.swiper-nav-btn:hover {
  border-color: #C9A24B;
  color: #C9A24B;
  transform: translateY(-2px);
}

/* ===================== Glassmorphism forms & cards ===================== */
.glass {
  background: rgba(28, 28, 28, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 162, 75, 0.18);
}
.glass-input {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.glass-input:focus {
  border-color: #C9A24B;
  background: rgba(201, 162, 75, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.12);
  outline: none;
}

/* Gold underline hover effect for nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #C9A24B;
  transition: width 0.35s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ===================== Magnetic gold CTA button ===================== */
.btn-gold {
  position: relative;
  transition: box-shadow 0.4s ease, background 0.3s ease;
  will-change: transform;
}
.btn-gold:hover {
  box-shadow: 0 0 40px rgba(201, 162, 75, 0.4);
}
.magnetic-wrap {
  display: inline-block;
}

/* Flash message fade-in */
.flash-msg {
  animation: flashIn 0.35s ease-out;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stat card subtle lift */
.stat-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.5);
}

/* Status badge */
.badge {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* GSAP reveal starting states (JS toggles final state) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-fade {
  opacity: 0;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-fade, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
