/* Custom styles for Jodie Wallace Realty */

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

/* Navbar transition states */
.nav-text {
    color: #5c1f33;
    transition: color 0.3s ease;
}

.nav-subtext {
    color: #a11743;
    transition: color 0.3s ease;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

/* Button active scale */
.active\:scale-95:active {
    transform: scale(0.95);
}

.active\:scale-98:active {
    transform: scale(0.98);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7D2E4B;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #5c1f33;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(125, 46, 75, 0.1);
}

/* Card hover effects */
.reveal:hover {
    transform: translateY(-2px);
}

/* Geometric accent animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-6px) rotate(45deg); }
}

/* Hero decorative shapes */
@media (min-width: 1024px) {
    .absolute.top-1\/4.right-10 {
        animation: float 6s ease-in-out infinite;
    }
    .absolute.bottom-1\/4.left-1\/4 {
        animation: float-slow 8s ease-in-out infinite;
    }
}

/* Image aspect ratios to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
