/* Custom Styles for Bradsher Grading & Hauling */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 168, 184, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 231, 235, 0.4) 0%, transparent 70%);
    bottom: 100px;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(244, 168, 184, 0.2);
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: rotate 12s linear infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(252, 231, 235, 0.2);
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: rotate 10s linear infinite reverse;
}

.geo-diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(244, 168, 184, 0.25);
    top: 20%;
    right: 25%;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite;
}

.geo-arc-1 {
    width: 200px;
    height: 100px;
    border: 4px solid rgba(252, 231, 235, 0.2);
    border-radius: 100px 100px 0 0;
    bottom: 20%;
    left: 15%;
    animation: float 9s ease-in-out infinite;
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7B2D3B, #F4A8B8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Button hover effects */
a {
    text-decoration: none;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b2430;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .service-card::before,
    .service-card,
    .scroll-reveal {
        animation: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        transition: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Hero scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 70px solid rgba(244, 168, 184, 0.2);
    }
    
    .geo-square-1 {
        width: 50px;
        height: 50px;
    }
    
    .geo-diamond-1 {
        width: 30px;
        height: 30px;
    }
    
    .geo-arc-1 {
        width: 100px;
        height: 50px;
    }
}
