/* ============================================
   Gem Envy Crystal Collective — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #E8DDD3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4C4B8;
}

/* Selection color */
::selection {
    background: #f9c4b0;
    color: #6e251c;
}

/* ============================================
   Header / Navigation
   ============================================ */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: translateY(7px) rotate(45deg);
}
#menu-btn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active #bar3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Floating Cards
   ============================================ */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-1deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(0.5deg); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.card-float-1 {
    animation: float1 6s ease-in-out infinite;
}
.card-float-2 {
    animation: float2 5s ease-in-out infinite 0.5s;
}
.card-float-3 {
    animation: float3 7s ease-in-out infinite 1s;
}
.card-float-4 {
    animation: float4 5.5s ease-in-out infinite 0.3s;
}

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

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

/* ============================================
   Card hover effects
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Button focus states
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ee714d;
    outline-offset: 2px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
