@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

.animate-gradient {
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}


.gradient-bg {
    background: #ffffffdb;
    color: #07435F;
    backdrop-filter: blur(20px);
}

.shadow-top{
    box-shadow: 0px -2px 10px #8080804f;
}

/* .gradient-bg {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
} */


.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.chart-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.color-swatch {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-swatch:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.color-swatch:hover .copy-hint {
    opacity: 1;
    transform: translateY(0);
}

.copy-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.copied-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.copied-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.tab-active {
    border-bottom: 3px solid #3b82f6;
    color: #3b82f6;
    font-weight: 600;
}

.color-value {
    font-family: monospace;
    font-weight: 600;
}

.quick-copy-btn {
    transition: all 0.2s ease;
}

.quick-copy-btn:hover {
    transform: scale(1.05);
}

.custom-color-box {
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-color-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.copied-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    color: #1f2937;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10b981;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 280px;
}

.copied-notification.show {
    transform: translateX(0);
}

.filter-chip {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.copy-hint {
    opacity: 0;
    transition: opacity 0.2s ease;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
}

.color-swatch {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.05);
    z-index: 10;
}

.quick-copy-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.fade-in {
    animation: fadeIn 0.6s ease-in;
}



* {
    font-family: 'Inter', sans-serif;
}

.heading-font {
    font-family: 'Poppins', sans-serif;
}



.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-card {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.color-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.color-palette {
    height: 120px;
    background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 25%, #EC4899 50%, #F59E0B 75%, #10B981 100%);
}

.tab-active {
    background: #4F46E5;
    color: white;
    border-radius: 8px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.color-dot {
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.copy-btn.copied {
    background-color: #10B981;
}

.quick-color {
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-color:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.footer-link {
    position: relative;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}



/* Custom Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

.shimmer-bg {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Filter Chip Styles */
.filter-chip {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.filter-chip:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filter-chip:active {
    transform: scale(0.95);
}

/* Color Swatch Hover Effects */
.color-swatch:hover .copy-overlay {
    opacity: 1 !important;
}

.palette-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .quick-color-card {
        padding: 12px 8px;
    }

    .filter-chip {
        padding: 8px 12px;
        font-size: 12px;
    }

    #search-palettes {
        font-size: 14px;
    }
}



/* ================== CONTACT PAGE STYLES ================== */
.contact-gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-input {
    background: rgba(249, 250, 251, 0.8);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-input:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.contact-btn:active {
    transform: translateY(0);
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success/Error Messages */
.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.alert-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Social Links */
.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .contact-info-card {
        margin-bottom: 1.5rem;
    }
}


/* ================== ENHANCED ANIMATIONS ================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

@keyframes gradient-wave {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

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

    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes heartBeat {

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

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(0.95);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-gradient-wave {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-wave 8s ease infinite;
}

.animate-slide-down {
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.shimmer-bg {
    background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* ================== ENHANCED GLASS EFFECT ================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-effect-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================== ENHANCED TRANSITIONS ================== */
.transition-all-300 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all-500 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform-300 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================== ENHANCED CUSTOM SCROLLBAR ================== */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    transition: background 0.3s;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* ================== ENHANCED FILTER CHIPS ================== */
.filter-chip {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(226, 232, 240, 0.8);
    color: #64748b;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.filter-chip:hover::before {
    left: 100%;
}

.filter-chip.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.filter-chip:hover:not(.active) {
    background: rgba(248, 250, 252, 0.95);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-chip:active {
    transform: scale(0.96);
}

/* ================== ENHANCED COLOR SWATCH ================== */
.color-swatch {
    position: relative;
    overflow: hidden;
}

.color-swatch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.color-swatch:hover::after {
    opacity: 1;
}

.color-swatch:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.copy-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-overlay:hover {
    opacity: 1 !important;
    transform: scale(1.02);
}

/* ================== ENHANCED PALETTE CARD ================== */
.palette-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.palette-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s;
}

.palette-card:hover::before {
    opacity: 1;
}

.palette-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ================== ENHANCED BUTTONS ================== */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ================== ENHANCED TOOLTIP ================== */
.tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent;
}

/* ================== ENHANCED LOADING ANIMATION ================== */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ================== ENHANCED GRADIENT TEXT ================== */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: gradient-wave 8s ease infinite;
}

/* ================== ENHANCED NEON GLOW ================== */
.neon-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1);
}

/* ================== ENHANCED FAVORITE ANIMATION ================== */
.favorite-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-btn.active {
    color: #ef4444 !important;
    animation: heartBeat 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================== ENHANCED GRID LAYOUT ================== */
.palettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ================== MOBILE OPTIMIZATIONS ================== */
@media (max-width: 768px) {
    .palettes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .filter-chip {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .quick-color-card {
        padding: 0.75rem;
    }
}

@media (max-width: 640px) {
    .palettes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .filter-chip {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    #search-palettes {
        font-size: 0.875rem;
        padding: 0.875rem 0.875rem 0.875rem 3rem;
    }

    .palette-card {
        border-radius: 20px;
    }

    .color-swatch:hover {
        transform: scale(1.02);
    }
}

/* ================== ACCESSIBILITY IMPROVEMENTS ================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.focus-visible:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================== DARK MODE SUPPORT ================== */
@media (prefers-color-scheme: dark) {
    .palette-card {
        background: #1e293b;
        border-color: #334155;
    }

    .palette-card h3 {
        color: #f1f5f9;
    }

    .filter-chip {
        background: rgba(30, 41, 59, 0.9);
        border-color: #475569;
        color: #cbd5e1;
    }

    .filter-chip:hover:not(.active) {
        background: rgba(51, 65, 85, 0.95);
    }
}

/* ================== IMPROVED COLOR CONTRAST ================== */
.color-swatch .font-mono {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}



/* Custom Animations */
@keyframes gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    animation: gradient 3s ease-in-out infinite;
}

/* Custom slider styles */
input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 9999px;
    outline: none;
}

/* Red slider */
#red-slider {
    background: linear-gradient(to right, #fee2e2, #fca5a5, #ef4444, #dc2626, #7f1d1d);
}

/* Green slider */
#green-slider {
    background: linear-gradient(to right, #dcfce7, #86efac, #10b981, #059669, #064e3b);
}

/* Blue slider */
#blue-slider {
    background: linear-gradient(to right, #dbeafe, #93c5fd, #3b82f6, #1d4ed8, #1e3a8a);
}

/* Slider thumb styles for WebKit browsers */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

#red-slider::-webkit-slider-thumb {
    background: #ef4444;
}

#green-slider::-webkit-slider-thumb {
    background: #10b981;
}

#blue-slider::-webkit-slider-thumb {
    background: #3b82f6;
}

/* Slider thumb styles for Firefox */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgb(13, 70, 126);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--thumb-color);
}

#red-slider::-moz-range-thumb {
    background: #ef4444;
}

#green-slider::-moz-range-thumb {
    background: #10b981;
}

#blue-slider::-moz-range-thumb {
    background: #3b82f6;
}




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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #764ba2, #667eea);
}

/* Smooth transitions */
input,
select,
button,
.gradient-preview {
    transition: all 0.3s ease;
}

/* Glow effects */
.glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Loading animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
