/* Custom styles for Kennesaw Springs Pools */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #051828;
}
::-webkit-scrollbar-thumb {
    background: #1a5e8f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

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

/* Scroll reveal base — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(5, 24, 40, 0.92);
    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);
}

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

/* Mobile menu lines animation */
#mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Gold gradient text utility */
.gold-gradient {
    background: linear-gradient(135deg, #c9a84c, #e8cc7e, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shimmer animation for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-shimmer {
    background: linear-gradient(90deg, #5eead4, #c9a84c, #5eead4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

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

/* Pulse ring for CTA buttons */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(201, 168, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

.pulse-cta {
    animation: pulse-ring 2s ease-out infinite;
}

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

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Ensure map looks good in dark theme */
iframe[title*="location map"] {
    border-radius: 0 0 1rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}
