/* Custom Styles for Hometown Chiropractic */

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

/* Geometric Background Elements */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.circle-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    top: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
    top: 60%;
    right: 8%;
    animation: float 8s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(110, 231, 183, 0.3);
    top: 40%;
    right: 15%;
    animation: rotate 10s linear infinite;
}

.geo-square {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(167, 243, 208, 0.4);
    border-radius: 12px;
    bottom: 25%;
    left: 12%;
    animation: rotate 8s linear infinite reverse;
}

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

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

/* Hero Animations */
.hero-badge {
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-trust {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

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

/* About Section Animations */
.about-image {
    animation: slideInLeft 0.8s ease-out;
}

.about-content {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(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, #059669, #10b981, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

/* Why Section Animations */
.why-content {
    animation: slideInLeft 0.8s ease-out;
}

.why-image {
    animation: slideInRight 0.8s ease-out;
}

/* Contact Form */
.contact-form {
    animation: fadeInUp 0.8s ease-out;
}

.contact-info {
    animation: slideInLeft 0.8s ease-out;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.1);
}

/* Mobile Menu */
.mobile-menu-open #mobile-menu {
    transform: translateY(0);
}

#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Focus Styles */
input:focus, textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-circle, .geo-triangle, .geo-square {
        display: none;
    }
}
