/* Custom Animations and Styles */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fade-in 1s ease-out 0.6s both;
}

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

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(26, 115, 232, 0.5);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 115, 232, 0.8);
}

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

/* CTA Button Enhanced */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Pillar Cards Hover Effect */
.pillar-card {
    position: relative;
    overflow: hidden;
}

.pillar-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.pillar-card:hover::after {
    opacity: 1;
}

/* Bento Grid Items */
.bento-item {
    transition: all 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
}

/* Timeline Connector */
.timeline-connector {
    position: absolute;
    left: 23px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, #1A73E8, #0F9D58);
}

/* Emergency Marker Pulse */
@keyframes marker-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.emergency-marker {
    animation: marker-pulse 2s ease-in-out infinite;
}

/* Accessibility - High Contrast Focus States */
*:focus {
    outline: 2px solid #1A73E8;
    outline-offset: 2px;
}

/* Ensure minimum touch target size for mobile (WCAG) */
button, a {
    min-height: 44px;
    min-width: 44px;
}

/* High contrast text for readability */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, transparent 0%, rgba(26, 115, 232, 0.2) 50%, transparent 100%);
    background-size: 1000px 100%;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Print Styles for Accessibility */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
}
