/* ============================================
   InnerFusion — Royal Gold Custom Styles
   ============================================ */

/* ---- Smooth Scroll & Overflow ---- */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ---- Selection Color ---- */
::selection {
  background-color: #C9A84C;
  color: #0D0D0D;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: #8B6914;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A84C;
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Glass-morphism effect when scrolled */
#navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Nav link underline effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #C9A84C);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---- Hamburger Animation ---- */
#hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center bottom, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   SERVICE CARDS — Glow Effect
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.08);
  transform: translateY(-4px);
}

/* ============================================
   PORTFOLIO — Hover Overlay
   ============================================ */
.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.portfolio-item:hover::after {
  opacity: 1;
}

/* ============================================
   TESTIMONIALS — Carousel
   ============================================ */
.testimonial-dot.active {
  background-color: #D4AF37;
  transform: scale(1.3);
}

/* ============================================
   CONTACT FORM — Focus States
   ============================================ */
#contact-form input:focus,
#contact-form textarea:focus,
#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* ============================================
   PAGE BANNER — Inner Pages
   ============================================ */
.page-banner {
  min-height: 320px;
}
@media (min-width: 1024px) {
  .page-banner {
    min-height: 380px;
  }
}

/* ============================================
   GLIGHTBOX OVERRIDES — Gold Theme
   ============================================ */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background-color: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  background-color: rgba(201, 168, 76, 0.4);
}
.glightbox-clean .gslide-title {
  font-family: 'Playfair Display', serif;
  color: #D4AF37;
}
.glightbox-clean .gslide-desc {
  font-family: 'Inter', sans-serif;
  color: rgb(0, 0, 0);
}
.goverlay {
  background: rgba(13, 13, 13, 0.95) !important;
}

/* ============================================
   GOLD GRADIENT BUTTON SHIMMER
   ============================================ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-btn {
  background: linear-gradient(110deg, #C9A84C 0%, #F5E6B8 25%, #C9A84C 50%, #F5E6B8 75%, #C9A84C 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ============================================
   CUSTOM ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ============================================
   SUCCESS TOAST
   ============================================ */
#success-toast.show {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .portfolio-item .absolute {
    opacity: 1;
  }
}
