/* Custom Styles for Hapshideaway */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #63356d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Writing Vertical Helper */
.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Placeholder Fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#nav-bg {
    transition: opacity 0.3s ease;
}

#navbar.scrolled #nav-bg {
    opacity: 1;
}

/* Form Input Autofill Style */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #f5f0f6 inset;
    transition: background-color 5000s ease-in-out 0s;
}
