/* Lead Centra Custom Styles */

/* Color Palette */
:root {
    --primary: #002B5B;
    --primary-dark: #001A3D;
    --accent: #00C9AF;
    --accent-dark: #00857a;
    --text: #111111;
    --light-bg: #FFFFFF;
}

/* Custom animations - GPU accelerated */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #002B5B 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #002B5B 0%, #00C9AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects - GPU accelerated */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.card-hover:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px rgba(0, 43, 91, 0.2);
}

/* Navigation scroll effect */
.nav-scroll {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95);
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hardware acceleration for better performance */
* {
    -webkit-tap-highlight-color: transparent;
}

.card-hover,
.blog-card,
.animate-fade-in,
.animate-slide-up {
    will-change: transform;
}

/* Form loader */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #002B5B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: none;
}

.form-submitting .loader {
    display: inline-block;
}

.form-submitting .submit-text {
    display: none;
}

/* Notification styles */
.notification {
    animation: slideUp 0.3s ease-out;
}

/* Blog card styles - GPU accelerated */
.blog-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.blog-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #001A3D;
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #002B5B;
    box-shadow: 0 0 0 3px rgba(0, 43, 91, 0.1);
}

/* Error message styles */
.error-message {
    animation: fadeIn 0.3s ease;
}

/* Success state */
.success-state {
    border-color: #10b981 !important;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .gradient-bg {
        background: #fff !important;
        color: #000 !important;
    }
}
