﻿/* Animations */
@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.hero-card {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .hero-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .hero-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .hero-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .hero-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        background-color: rgba(255, 255, 255, 0.25);
    }

.price-card {
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .price-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.chart-card {
    animation: fadeInUp 1s ease-out;
}

.category-card {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

    .category-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .category-card img {
        transition: transform 0.3s ease;
    }

    .category-card:hover img {
        transform: scale(1.1) rotate(5deg);
    }

.gold-price-number {
    font-weight: 700;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

.section-title {
    animation: fadeIn 0.8s ease-out;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #5d2b97, #d4af37);
        animation: fadeIn 1s ease-out;
    }

.hero-section {
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

#goldPriceChart {
    animation: fadeIn 1.2s ease-out;
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
