/* 
 * A & D Home Care Corp LinkTree - Custom Styles
 * Blue, Red, White theme with heart-inspired design
 */

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

::-webkit-scrollbar-track {
    background: #0d1b3e;
}

::-webkit-scrollbar-thumb {
    background: #1a237e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3949ab;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(229, 57, 53, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes heart-beat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.2);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.2);
    }

    70% {
        transform: scale(1);
    }
}

.heart-beat {
    animation: heart-beat 1.5s ease-in-out infinite;
}

/* License Badge Animation */
@keyframes badge-glow {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.1);
    }
}

@keyframes badge-shine {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.license-badge {
    position: relative;
    overflow: hidden;
    animation: badge-glow 2s ease-in-out infinite;
    background-size: 200% auto;
    transition: all 0.3s ease;
}

.license-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

.license-badge:hover {
    transform: scale(1.08) translateY(-2px);
    filter: brightness(1.15);
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

.animate-delay-6 {
    animation-delay: 0.6s;
}

.animate-delay-7 {
    animation-delay: 0.7s;
}

.animate-delay-8 {
    animation-delay: 0.8s;
}

.link-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(26, 35, 126, 0.35);
}

.link-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.logo-container {
    animation: fadeInUp 0.6s ease forwards, pulse-glow 3s ease-in-out 0.6s infinite;
    opacity: 0;
    border-radius: 9999px;
}

.heart-glow {
    background: linear-gradient(135deg, #e53935, #c62828, #e53935);
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
    border-radius: 9999px;
}

/* Background pattern */
.bg-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(26, 35, 126, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(229, 57, 53, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(26, 35, 126, 0.1) 0%, transparent 40%);
}

/* Selection */
::selection {
    background: rgba(229, 57, 53, 0.3);
    color: white;
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid rgba(229, 57, 53, 0.5);
    outline-offset: 2px;
}

/* Service card hover */
.service-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

/* Toast notification */
.toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}