/* Custom Styles for Performance Restoration */

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

/* Animation Keyframes */
@keyframes scroll {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(400%);
    }
}

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

/* Selection Color */
::selection {
    background-color: #800020;
    color: white;
}

::-moz-selection {
    background-color: #800020;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #580016;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile Menu Transitions */
#mobile-menu-btn.open #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.open #menu-line-2 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #800020 !important;
}

/* Form Success Animation */
@keyframes success-pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#success-message.show {
    animation: success-pop 0.5s ease-out forwards;
}

/* Gradient Animation for Hero */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}
