/* Custom styles for PBGMC Cardiac Rehabilitation */

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

/* Hero blob animations */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #fce7eb 0%, #f9cfd9 100%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffecf0 0%, #ffd6e0 100%);
    bottom: 10%;
    left: 5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f4a3b8 0%, #ed6e96 100%);
    top: 50%;
    left: 40%;
    animation-delay: -5s;
    opacity: 0.3;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 182, 193, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(140, 24, 56, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

/* Approach step animation */
.approach-step {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #f9cfd9;
    color: #751733;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .testimonial-card,
    .approach-step {
        transition: none;
    }
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

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

/* Print styles */
@media print {
    nav, #contact, .hero-blob, .absolute {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
