/* Custom styles for J and F Mobile Homes */

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

/* Geometric animated shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #fbbf24, transparent);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #c084fc, transparent);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation-delay: -5s;
}

.shape-circle-3 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fde68a, transparent);
    border-radius: 50%;
    top: 40%;
    left: 15%;
    animation-delay: -10s;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.3);
    border: 2px solid rgba(251, 191, 36, 0.5);
    top: 60%;
    right: 15%;
    transform: rotate(45deg);
    animation-delay: -3s;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(192, 132, 252, 0.3);
    border: 2px solid rgba(192, 132, 252, 0.5);
    top: 25%;
    right: 25%;
    transform: rotate(30deg);
    animation-delay: -7s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(253, 214, 77, 0.3);
    top: 70%;
    left: 20%;
    animation-delay: -12s;
}

.shape-diamond {
    width: 100px;
    height: 100px;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.4);
    bottom: 30%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Scroll indicator */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

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

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

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

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

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

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(59, 7, 100, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 5px;
}

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