/* =============================================
   Delphi House Bed & Breakfast — Custom Styles
   ============================================= */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F4;
}
::-webkit-scrollbar-thumb {
    background: #5B2C6F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4A1F5C;
}

/* Navbar transition */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08), 0 4px 20px rgba(91, 44, 111, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #5B2C6F !important;
}

#navbar.scrolled .nav-subtext {
    color: #7C3AED !important;
}

#navbar.scrolled .nav-link {
    color: #78716C !important;
}

#navbar.scrolled .nav-link:hover {
    color: #5B2C6F !important;
}

/* Primary button */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* Room card hover */
.room-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    transition: padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* Section reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery hover overlay */
.group img {
    will-change: transform;
}

/* Selection color */
::selection {
    background: #5B2C6F;
    color: #fff;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #5B2C6F;
    outline-offset: 2px;
}

/* 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;
    }
    
    .floating-card {
        animation: none;
    }
    
    .room-card, .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Large screen adjustments */
@media (min-width: 1280px) {
    .font-serif {
        letter-spacing: -0.01em;
    }
}
