/* Custom Styles for Core Chiropractic */

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 218, 185, 0.15) 0%, rgba(255, 218, 185, 0.05) 100%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08) 0%, rgba(128, 0, 32, 0.02) 100%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    animation: float 25s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(255, 218, 185, 0.1);
    top: 50%;
    left: 5%;
    transform: rotate(15deg);
    animation: rotate 30s linear infinite;
}

.geo-square {
    width: 150px;
    height: 150px;
    background: rgba(128, 0, 32, 0.05);
    right: 10%;
    bottom: 30%;
    transform: rotate(45deg);
    animation: float 18s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

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

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile Menu Transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Custom Focus Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* Button Hover Effects */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    #navbar,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
