/* Custom styles for St Mary's Pediatric Therapy Center */

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

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

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

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

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

/* Geometric shapes in hero */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #fefdf8;
    top: 10%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f5e39a;
    top: 60%;
    right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    top: 30%;
    right: 15%;
    animation: float 5s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: #fefdf8;
    top: 70%;
    left: 10%;
    border-radius: 20px;
    transform: rotate(45deg);
    animation: spin 12s linear infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: #f5e39a;
    top: 20%;
    left: 20%;
    border-radius: 12px;
    transform: rotate(30deg);
    animation: spin 8s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #ffffff;
    top: 45%;
    right: 25%;
    animation: float 7s ease-in-out infinite;
    opacity: 0.1;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #fefdf8 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: 20%;
    left: 5%;
    opacity: 0.3;
}

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

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

/* Service card hover effects */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e55a35, #e3b83c);
    border-radius: 3xl 3xl 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card {
    position: relative;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .menu-line {
    background: #374151 !important;
}

/* Mobile menu button animation */
.menu-line:nth-child(1) {
    transform-origin: center;
}

.menu-line:nth-child(2) {
    transform-origin: center;
}

.menu-line:nth-child(3) {
    transform-origin: center;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
}

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

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

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

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#backToTop {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #e55a35 !important;
    box-shadow: 0 0 0 3px rgba(229, 90, 53, 0.1) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .service-card,
    .testimonial-card {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav,
    #backToTop,
    .geo-shape {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-square-1 {
        width: 70px;
        height: 70px;
    }
}

/* Small phone adjustments */
@media (max-width: 360px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}
