/* Custom styles for Mays Chapel Real Estate */

:root {
    --midnight: #0a1f3f;
    --mint: #2dd4bf;
}

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

/* Navbar text color transition */
.nav-text {
    color: #0a1f3f;
    transition: color 0.3s ease;
}

nav.scrolled .nav-text {
    color: #0a1f3f;
}

/* Mobile menu links */
.mobile-link {
    color: #0a1f3f;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 31, 63, 0.08);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #14b8a6;
    padding-left: 0.5rem;
}

/* Floating animation for hero card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Service card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Geometric decorative shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Custom selection color */
::selection {
    background-color: #2dd4bf;
    color: #0a1f3f;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Smooth image loading */
img {
    background-color: #f0f4f8;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .font-display {
        font-size: 3rem;
    }
}
