/* Crystal Lake Estates — Premium Dark Luxury Styles */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #3d3d5c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a017;
}

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

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #ffffff;
}

/* Base styles */
body {
    overflow-x: hidden;
}

/* Navbar styles */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: #d4a017;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.mobile-nav-link:hover::before {
    width: 3px;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating cards animation */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        animation: float 6s ease-in-out infinite;
    }
    .stat-card:nth-child(2) {
        animation-delay: -1.5s;
    }
    .stat-card:nth-child(3) {
        animation-delay: -3s;
    }
    .stat-card:nth-child(4) {
        animation-delay: -4.5s;
    }
}

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

/* Gold shimmer effect for buttons */
.btn-gold {
    position: relative;
    overflow: hidden;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}
.btn-gold:hover::before {
    left: 100%;
}

/* Input focus glow */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

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

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
