/* Custom Styles for Carol J. Carr Real Estate */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Hero Animations */
.hero-element {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}
.hero-element:nth-child(1) { animation-delay: 0.2s; }
.hero-element:nth-child(2) { animation-delay: 0.4s; }
.hero-element:nth-child(3) { animation-delay: 0.6s; }
.hero-element:nth-child(4) { animation-delay: 0.8s; }
.hero-element:nth-child(5) { animation-delay: 1s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up {
    transform: translateY(40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Navbar Scroll State */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-text-white {
    color: #fff;
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Menu Animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: mobileLinkReveal 0.4s ease forwards;
    opacity: 0;
}
#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { animation-delay: 0.35s; }

@keyframes mobileLinkReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        transform: translateY(20px);
    }
}

/* Mobile Menu Button */
.menu-line {
    transform-origin: center;
}
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Teal Gradient Accent */
.bg-teal-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #0f766e 100%);
}

/* Subtle Pattern Overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Focus Styles for Accessibility */
input:focus, select:focus, textarea:focus, button:focus, a:focus {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
