/* ===== Custom Styles for Chiromed Injury Center ===== */

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

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

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    bottom: 20%;
    right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 30%;
    right: 15%;
    animation: float 10s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.08);
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    bottom: 30%;
    left: 20%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255,255,255,0.08);
    top: 60%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    top: 0;
    left: 0;
}

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

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

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.nav-scrolled .logo-text {
    color: #1B5E20 !important;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    transition: color 0.2s ease;
}

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

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .animate-bounce {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    .shape-circle-2,
    .shape-circle-3,
    .shape-square-1,
    .shape-square-2,
    .shape-triangle-1 {
        display: none;
    }
}
