/* Custom styles for Truemed Homecare */

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

/* 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(209, 74, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(229, 175, 59, 0.08);
    bottom: 20%;
    left: -50px;
    transform: rotate(45deg);
    border-radius: 20px;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(209, 74, 38, 0.05);
    top: 40%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 175, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 10%;
}

.geo-arc-1 {
    width: 250px;
    height: 250px;
    border: 3px solid rgba(209, 74, 38, 0.1);
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    top: 60%;
    right: 5%;
    transform: rotate(-45deg);
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* Floating animations for decorative elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d14a26;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .geo-shape,
    .floating,
    .floating-delayed {
        display: none;
    }
}
