/* ═══════════ CUSTOM STYLES ═══════════ */

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

/* 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;
    }
}

/* ═══════════ NAVBAR ═══════════ */
.nav-scrolled {
    background: rgba(255, 253, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-scrolled .nav-text-color,
.nav-scrolled a.nav-text-color {
    color: #292524;
}

/* ═══════════ HERO ANIMATIONS ═══════════ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-8px) rotate(12deg); }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-6px) scale(1.2); opacity: 0.9; }
}

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

.floating-shape {
    animation: floatSlow 5s ease-in-out infinite;
}

.floating-dot {
    animation: floatDot 3s ease-in-out infinite;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state: visible (progressive enhancement) */
.reveal[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════ MOBILE MENU ═══════════ */
#mobile-menu.show {
    animation: slideDown 0.3s ease;
}

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

/* ═══════════ BACK TO TOP ═══════════ */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

#back-to-top {
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

/* ═══════════ SERVICE CARDS HOVER ═══════════ */
.group:hover .group-hover\:-translate-y-0\.5 {
    transform: translateY(-2px);
}

/* ═══════════ FOCUS VISIBLE ═══════════ */
:focus-visible {
    outline: 2px solid #d95a30;
    outline-offset: 2px;
}

/* ═══════════ SELECTION ═══════════ */
::selection {
    background: #f5c4b0;
    color: #642517;
}

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef9eb;
}
::-webkit-scrollbar-thumb {
    background: #f5c4b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e4744e;
}
