/* Casa Sublime — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="up"] {
    opacity: 0;
    transform: translateY(32px);
}

.reveal[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-24px);
}

.reveal[data-reveal="right"] {
    opacity: 0;
    transform: translateX(24px);
}

.reveal[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.96);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5c5c70;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 10, 20, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6347;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero image subtle parallax */
#hero .absolute img {
    will-change: transform;
}

/* Selection color */
::selection {
    background: rgba(255, 99, 71, 0.2);
    color: inherit;
}
