/* ===== CUSTOM STYLES ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #d94736;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c73a2a;
}

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

.floating-card.card-ocean {
    animation-delay: 0s;
}

.floating-card.card-sunset {
    animation-delay: 1s;
}

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

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

/* Scroll reveal base - content is VISIBLE by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal hidden state - only applied via JS */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll reveal active state (added by JS) */
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #d94736;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #d94736;
    color: white;
}
