/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.4s ease;
}

/* Slide In from Top (for modals) */
@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideInDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Scale In */
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scale-in {
    animation: scaleIn 0.3s ease;
}

/* Button Pulse on Hover */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.btn:active {
    animation: pulse 0.2s ease;
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* Smooth Transitions for Dropdowns */
.dropdown-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Focus Ring Animation */
@keyframes focusRing {
    0% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

input:focus,
textarea:focus,
select:focus {
    animation: focusRing 0.6s ease-out;
}

/* Image Slider Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-image:not(.hidden) {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes fadeImageOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.slider-image.hidden {
    display: none;
}

/* Slider Dot Active Indicator */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.slider-dot.active {
    animation: dotPulse 0.3s ease;
}

/* Hide Slider Navigation Buttons */
.slider-btn {
    display: none;
}

/* Status Indicator Styling - Rounded Square */
.status-indicator-square {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
}
/* Shake Animation (for errors) */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.error-shake {
    animation: shake 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════════ */
/* PREMIUM DEPTH SYSTEM                                           */
/* ═══════════════════════════════════════════════════════════════ */

/* Subtle CTA glow pulse */
@keyframes ctaGlowPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(59,130,246,0.25); }
    50%      { box-shadow: 0 4px 16px rgba(59,130,246,0.35), 0 0 6px rgba(59,130,246,0.1); }
}

.hero-section .btn-primary {
    animation: ctaGlowPulse 3s ease-in-out infinite;
}

.hero-section .btn-primary:hover {
    animation: none;
}

/* Animated hero gradient headline */
@keyframes heroGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section h1 {
    text-shadow: 0 0 40px rgba(59,130,246,0.08);
}

/* Authority bar stat hover highlight */
.authority-stat {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), background-color 0.25s ease;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: default;
}

.authority-stat:hover {
    transform: translateY(-3px);
    background-color: rgba(59,130,246,0.04);
}

/* Floating accent shapes for hero */
@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50%      { transform: translateY(-12px) rotate(3deg); opacity: 0.5; }
}

.hero-accent-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatShape 8s ease-in-out infinite;
    will-change: transform;
    filter: blur(40px);
}

.hero-accent-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
    top: 5%;
    left: 2%;
    animation-delay: 0s;
}

.hero-accent-shape:nth-child(2) {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(139,92,246,0.03) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

.hero-accent-shape:nth-child(3) {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(6,182,212,0.025) 0%, transparent 70%);
    top: 25%;
    right: 12%;
    animation-delay: 4s;
}

@media (max-width: 768px) {
    .hero-accent-shape {
        filter: blur(50px);
        opacity: 0.5;
    }
}
