/* Custom styles for Kiahuna Plantation Resort */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-scrolled .nav-text-color {
    color: #ffffff !important;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal="delay-1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal="delay-2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal="delay-3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal="delay-4"] {
    transition-delay: 0.4s;
}

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

/* Subtle hover effects on cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(15, 31, 61, 0.15);
}

/* Gold accent underline animation */
.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a017, #e6b830);
    transition: width 0.3s ease;
}

.gold-underline:hover::after {
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #fef9f0;
}

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

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fef9f0 0%, #f5ebe0 100%);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #d4a017, #e6b830);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 160, 23, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}
