/* SM Interiors - Luxury Custom Styles */

/* Google Fonts Import in CSS for fallback */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-olive-dark: #2E3D2F;
  --color-olive-accent: #435844;
  --color-olive-light: #E8EFE9;
  --color-gold: #C5A059;
  --color-gold-light: #E6CA85;
  --color-cream-bg: #FAF7F2;
  --color-warm-white: #FFFFFF;
  --color-text-dark: #111111;
  --color-text-muted: #555555;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-cream-bg);
  color: var(--color-text-dark);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--color-cream-bg);
}

.font-serif-luxury {
  font-family: var(--font-serif);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2E3D2F;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #C5A059, #E6CA85, #2E3D2F);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Custom Glow Cursor */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(67, 88, 68, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s ease-out, opacity 0.3s ease;
  display: none;
}

@media (min-width: 1024px) {
  .cursor-glow {
    display: block;
  }
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #111111;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-line {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}

.preloader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, #C5A059, transparent);
  animation: preloaderAnim 1.8s infinite ease-in-out;
}

@keyframes preloaderAnim {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.glass-card-dark {
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-nav {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

/* Gold Gradient Effects & Buttons */
.gold-gradient-text {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #AA7C11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #D4AF37 0%, #C5A059 50%, #B8860B 100%);
}

.gold-gradient-bg:hover {
  background: linear-gradient(135deg, #2E3D2F 0%, #435844 100%);
}

.gold-border {
  border-color: rgba(197, 160, 89, 0.4);
}

/* Ripple Button Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Animations & Reveal Effects */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Floating Animation */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: floatAnim 4s ease-in-out infinite;
}

/* Subtle Shimmer Effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-gold {
  background: linear-gradient(90deg, rgba(197,160,89,0) 0%, rgba(230,202,133,0.4) 50%, rgba(197,160,89,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Lightbox Modal */
#lightbox-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Accordion Smooth Expand */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Header States & Nav Link Readability */
header:not(.scrolled) .nav-link {
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

header:not(.scrolled) .logo-text {
  color: #FFFFFF;
}

header.scrolled .nav-link {
  color: #111111;
  text-shadow: none;
}

header.scrolled .logo-text {
  color: #111111;
}

.nav-link:hover, 
header.scrolled .nav-link:hover, 
header:not(.scrolled) .nav-link:hover {
  color: #C5A059 !important;
}

.nav-link.active,
header.scrolled .nav-link.active,
header:not(.scrolled) .nav-link.active {
  color: #C5A059 !important;
  font-weight: 600;
}

/* Active Nav Link Indicator */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #C5A059;
}

