/* ============================================
   Sacred Gifts 101 — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Base styles & smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: #0D0A07;
}

::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4B86A;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 10, 7, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #C9A84C !important;
}

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

/* Mobile menu animations */
#mobile-menu-btn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu-btn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for revealed elements */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Typography
   ============================================ */
.font-serif {
    letter-spacing: -0.01em;
}

/* ============================================
   Button hover effects
   ============================================ */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Image loading
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #F5EDE3;
}

/* ============================================
   Focus styles
   ============================================ */
:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* ============================================
   Form input focus states
   ============================================ */
input:focus, textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        letter-spacing: 0;
    }
}
