/* ===== Custom Styles for Royal Inn Nashville ===== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Geometric Background Blobs ===== */
.geometric-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(52, 211, 153, 0.08);
    animation: float-blob 20s ease-in-out infinite;
}

.blob-2 {
    bottom: 20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.06);
    animation: float-blob 25s ease-in-out infinite reverse;
}

.blob-3 {
    top: 50%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: rgba(110, 231, 183, 0.05);
    animation: float-blob 18s ease-in-out infinite;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Floating Cards ===== */
.floating-card {
    animation: float-card 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 2s;
}

.card-3 {
    animation-delay: 4s;
}

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

/* ===== Decorative Shapes ===== */
.animate-float {
    animation: float-shape 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-shape 10s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(18deg); }
}

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

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ===== Nav Link Underline ===== */
.nav-link {
    position: relative;
}

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

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

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(4, 10, 20, 0.05);
}

/* ===== Amenity Card Hover ===== */
.amenity-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateX(4px);
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    position: relative;
}

/* ===== Button Focus States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #040a14;
}

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

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

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

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .geometric-blob {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}
