/* Custom Styles for Butler Chiropractic Clinic */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 45, 29, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 63, 124, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    animation: float 15s 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(124, 45, 29, 0.05);
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
    animation: rotate 25s linear infinite;
}

.geo-square {
    width: 120px;
    height: 120px;
    background: rgba(244, 63, 124, 0.04);
    right: 15%;
    top: 60%;
    transform: rotate(45deg);
    animation: rotate 30s linear infinite reverse;
}

.geo-ring {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(124, 45, 29, 0.06);
    border-radius: 50%;
    top: 70%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

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

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-slide-up-delay-3 {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7C2D1D 0%, #92400e 100%);
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 45, 29, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 45, 29, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #7C2D1D;
    font-weight: 600;
    border-radius: 1rem;
    text-decoration: none;
    border: 2px solid rgba(124, 45, 29, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #7C2D1D;
    background: rgba(124, 45, 29, 0.05);
    transform: translateY(-2px);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C2D1D, #f43f7c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

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

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

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

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(124, 45, 29, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7C2D1D, #f43f7c);
    border-radius: 5px;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle {
        display: none;
    }
    
    .geo-square {
        width: 60px;
        height: 60px;
    }
    
    .geo-ring {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    .animate-bounce {
        display: none;
    }
    
    body {
        background: white;
    }
}
