/* Custom styles for Liberty First Realty */

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

/* Custom selection color */
::selection {
    background-color: #E66A3A;
    color: white;
}

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Service card hover effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 106, 58, 0.5);
}

.service-card:hover svg {
    transform: scale(1.1);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Input focus animation */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #E66A3A !important;
}

/* Subtle parallax on hero image */
#hero img {
    transition: transform 0.3s ease;
}

/* Navbar scroll effect */
.nav-scrolled #nav-bg {
    opacity: 1;
}

.nav-scrolled svg {
    color: #1a1a1a;
}

/* Thin line decorations */
.line-decor {
    position: relative;
}

.line-decor::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #E66A3A;
}

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

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

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

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

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title span {
        display: block;
    }
}
