/* Custom styles for Josh Newell Realty */

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

/* Blob animations for background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #a7f3d0;
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #6ee7b7;
    top: 60%;
    right: -50px;
    animation-delay: -7s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #34d399;
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

/* Geometric shapes for hero */
.geo-shape {
    position: absolute;
    opacity: 0.15;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: 20%;
    left: 8%;
    animation: geoFloat 12s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 40%;
    left: 15%;
    animation: geoFloat 10s ease-in-out infinite;
    animation-delay: -5s;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    top: 25%;
    left: 5%;
    transform: rotate(45deg);
    animation: geoSpin 20s linear infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    bottom: 30%;
    right: 12%;
    transform: rotate(30deg);
    animation: geoSpin 15s linear infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 255, 255, 0.1);
    top: 60%;
    right: 20%;
    animation: geoFloat 18s ease-in-out infinite;
    animation-delay: -3s;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: 15%;
    left: 20%;
    animation: geoFloat 14s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes geoFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-15px, 15px) rotate(-3deg); }
}

@keyframes geoSpin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Navbar scroll effect */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 251, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #047857;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

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

/* Testimonial cards */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

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

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Selection color */
::selection {
    background: #047857;
    color: white;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f9fafb inset !important;
    box-shadow: 0 0 0 30px #f9fafb inset !important;
}
