/* Custom styles for B G Amundson Construction */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
    background: #5D3A6A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a2d55;
}

/* Selection color */
::selection {
    background: #D4A017;
    color: #2c1b34;
}

/* Hero parallax effect */
#hero {
    scroll-behavior: smooth;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(93, 58, 106, 0.1);
}

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

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

/* Service card hover shine */
.group::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
    border-radius: inherit;
}

.group:hover::after {
    left: 100%;
}

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

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

/* Project card image zoom */
.group .aspect-\[4\/3\] img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pulse animation for hero dot */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 160, 23, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 160, 23, 0);
    }
}

.animate-pulse {
    animation: pulse-ring 2s infinite;
}

/* Input focus animation */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(93, 58, 106, 0.1);
}

/* Subtle pattern for sections */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(93, 58, 106, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Mobile nav link transition */
.mobile-nav-link {
    position: relative;
    transition: color 0.2s ease;
}

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

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

/* Testimonial card gradient border */
.bg-white\/5 {
    backdrop-filter: blur(10px);
}

/* Counter animation */
.counter {
    display: inline-block;
}
